pub struct Field<'a> { /* private fields */ }Expand description
A field in a custom type or method parameter.
Implementations§
Source§impl<'a> Field<'a>
impl<'a> Field<'a>
Sourcepub const fn new(
name: &'a str,
ty: &'a Type<'a>,
comments: &'a [&'a Comment<'a>],
) -> Self
pub const fn new( name: &'a str, ty: &'a Type<'a>, comments: &'a [&'a Comment<'a>], ) -> Self
Creates a new field with the given name, borrowed type, and comments.
Trait Implementations§
impl<'a> Eq for Field<'a>
Auto Trait Implementations§
impl<'a> Freeze for Field<'a>
impl<'a> RefUnwindSafe for Field<'a>
impl<'a> Send for Field<'a>
impl<'a> Sync for Field<'a>
impl<'a> Unpin for Field<'a>
impl<'a> UnwindSafe for Field<'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