pub struct ItemForeignMod {
pub attrs: Vec<Attribute>,
pub abi: Abi,
pub brace_token: Brace,
pub items: Vec<ForeignItem>,
}
Expand description
A block of foreign items: extern "C" { ... }
.
This type is available if Syn is built with the "full"
feature.
Fields§
§attrs: Vec<Attribute>
§abi: Abi
§brace_token: Brace
§items: Vec<ForeignItem>
Trait Implementations§
Source§impl Clone for ItemForeignMod
impl Clone for ItemForeignMod
Source§fn clone(&self) -> ItemForeignMod
fn clone(&self) -> ItemForeignMod
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 ItemForeignMod
impl Debug for ItemForeignMod
Source§impl From<ItemForeignMod> for Item
impl From<ItemForeignMod> for Item
Source§fn from(e: ItemForeignMod) -> Item
fn from(e: ItemForeignMod) -> Item
Converts to this type from the input type.
Source§impl Hash for ItemForeignMod
impl Hash for ItemForeignMod
Source§impl PartialEq for ItemForeignMod
impl PartialEq for ItemForeignMod
Source§impl Synom for ItemForeignMod
impl Synom for ItemForeignMod
Source§impl ToTokens for ItemForeignMod
impl ToTokens for ItemForeignMod
impl Eq for ItemForeignMod
impl StructuralPartialEq for ItemForeignMod
Auto Trait Implementations§
impl Freeze for ItemForeignMod
impl RefUnwindSafe for ItemForeignMod
impl !Send for ItemForeignMod
impl !Sync for ItemForeignMod
impl Unpin for ItemForeignMod
impl UnwindSafe for ItemForeignMod
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.