pub struct ForeignItemType {
pub attrs: Vec<Attribute>,
pub vis: Visibility,
pub type_token: Type,
pub ident: Ident,
pub semi_token: Semi,
}
Expand description
A foreign type in an extern
block: type void
.
This type is available if Syn is built with the "full"
feature.
Fields§
§attrs: Vec<Attribute>
§vis: Visibility
§type_token: Type
§ident: Ident
§semi_token: Semi
Trait Implementations§
Source§impl Clone for ForeignItemType
impl Clone for ForeignItemType
Source§fn clone(&self) -> ForeignItemType
fn clone(&self) -> ForeignItemType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ForeignItemType
impl Debug for ForeignItemType
Source§impl From<ForeignItemType> for ForeignItem
impl From<ForeignItemType> for ForeignItem
Source§fn from(e: ForeignItemType) -> ForeignItem
fn from(e: ForeignItemType) -> ForeignItem
Converts to this type from the input type.
Source§impl Hash for ForeignItemType
impl Hash for ForeignItemType
Source§impl PartialEq for ForeignItemType
impl PartialEq for ForeignItemType
Source§impl Synom for ForeignItemType
impl Synom for ForeignItemType
Source§impl ToTokens for ForeignItemType
impl ToTokens for ForeignItemType
impl Eq for ForeignItemType
impl StructuralPartialEq for ForeignItemType
Auto Trait Implementations§
impl Freeze for ForeignItemType
impl RefUnwindSafe for ForeignItemType
impl !Send for ForeignItemType
impl !Sync for ForeignItemType
impl Unpin for ForeignItemType
impl UnwindSafe for ForeignItemType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.