Struct ItemStatic
struct ItemStatic { ... }
A static item: static BIKE: Shed = Shed(42).
Fields
attrs: Vec<Attribute>vis: Visibilitystatic_token: Staticmutability: StaticMutabilityident: Identcolon_token: Colonty: Box<Type>eq_token: Eqexpr: Box<Expr>semi_token: Semi
Implementations
impl Clone for ItemStatic
fn clone(self: &Self) -> Self
impl Debug for ItemStatic
fn fmt(self: &Self, formatter: &mut Formatter<'_>) -> Result
impl Eq for ItemStatic
impl Freeze for ItemStatic
impl Hash for ItemStatic
fn hash<H>(self: &Self, state: &mut H) where H: Hasher
impl Parse for ItemStatic
fn parse(input: ParseStream<'_>) -> Result<Self>
impl PartialEq for ItemStatic
fn eq(self: &Self, other: &Self) -> bool
impl RefUnwindSafe for ItemStatic
impl Send for ItemStatic
impl Sync for ItemStatic
impl ToTokens for ItemStatic
fn to_tokens(self: &Self, tokens: &mut TokenStream)
impl Unpin for ItemStatic
impl UnsafeUnpin for ItemStatic
impl UnwindSafe for ItemStatic
impl<T> Any for ItemStatic
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for ItemStatic
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for ItemStatic
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for ItemStatic
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for ItemStatic
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Spanned for ItemStatic
fn span(self: &Self) -> Span
impl<T> ToOwned for ItemStatic
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for ItemStatic
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for ItemStatic
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for ItemStatic
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>