Struct ForeignItemStatic
pub struct ForeignItemStatic { pub attrs: Vec<Attribute>, pub vis: Visibility, pub safety: Safety, pub static_token: Static, pub mutability: StaticMutability, pub ident: Ident, pub colon_token: Colon, pub ty: Box<Type>, pub semi_token: Semi }
A foreign static item in an extern block: static ext: u8.
Fields
attrs: Vec<Attribute>vis: Visibilitysafety: Safetystatic_token: Staticmutability: StaticMutabilityident: Identcolon_token: Colonty: Box<Type>semi_token: Semi
Trait Implementations
impl Clone for ForeignItemStatic
fn clone(&self) -> Self
impl Parse for ForeignItemStatic
fn parse(input: ParseStream<'_>) -> Result<Self>
impl ToTokens for ForeignItemStatic
fn to_tokens(&self, tokens: &mut TokenStream)
Auto Trait Implementations
impl !Send for ForeignItemStatic
impl !Sync for ForeignItemStatic
impl Freeze for ForeignItemStatic
impl RefUnwindSafe for ForeignItemStatic
impl Unpin for ForeignItemStatic
impl UnsafeUnpin for ForeignItemStatic
impl UnwindSafe for ForeignItemStatic
Blanket Implementations
impl<T> Any for ForeignItemStatic
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ForeignItemStatic
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ForeignItemStatic
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ForeignItemStatic
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ForeignItemStatic
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Spanned for ForeignItemStatic
where
T: Spanned + ?Sized,
fn span(&self) -> Span
impl<T> ToOwned for ForeignItemStatic
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ForeignItemStatic
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ForeignItemStatic
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ForeignItemStatic
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>