pub struct RecordField {
pub matching_source: Fragment,
pub visibility: Visibility,
pub name: Identifier,
pub ty: Type,
}Available on crate feature
ast-models only.Expand description
A field of a RecordDecl, such as pub x: i32.
Fields§
§matching_source: FragmentFull matching source of the field.
visibility: VisibilityThe visibility of the field.
name: IdentifierThe name of the field.
ty: TypeThe type of the field.
Trait Implementations§
Source§impl AstNode for RecordField
impl AstNode for RecordField
Source§fn matching_source(&self) -> &Fragment
fn matching_source(&self) -> &Fragment
Get the Fragment of source code this node was parsed from.
Source§impl Clone for RecordField
impl Clone for RecordField
Source§impl Debug for RecordField
impl Debug for RecordField
Source§impl PartialEq for RecordField
impl PartialEq for RecordField
impl StructuralPartialEq for RecordField
Auto Trait Implementations§
impl Forget for RecordField
impl Freeze for RecordField
impl RefUnwindSafe for RecordField
impl Send for RecordField
impl Sync for RecordField
impl Unpin for RecordField
impl UnsafeUnpin for RecordField
impl UnwindSafe for RecordField
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more