Struct rustfmt_nightly::items::Item
source · struct Item<'a> {
unsafety: Unsafe,
abi: Cow<'static, str>,
vis: Option<&'a Visibility>,
body: Vec<BodyElement<'a>>,
span: Span,
}
Fields§
§unsafety: Unsafe
§abi: Cow<'static, str>
§vis: Option<&'a Visibility>
§body: Vec<BodyElement<'a>>
§span: Span
Implementations§
source§impl<'a> Item<'a>
impl<'a> Item<'a>
fn from_foreign_mod(fm: &'a ForeignMod, span: Span, config: &Config) -> Item<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Item<'a>
impl<'a> !Send for Item<'a>
impl<'a> !Sync for Item<'a>
impl<'a> Unpin for Item<'a>
impl<'a> !UnwindSafe for Item<'a>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes