pub struct TypeDeclField {
pub ty: Type,
pub name: String,
pub id: NodeId,
pub span: Span,
}Expand description
An Ast node representing the declaration of a field of a user-defined type.
Fields§
§ty: TypeThe type of a field of a user-defined type
name: StringThe name of a field of a user-defined type
id: NodeIdThe id of the node in the Ast
span: SpanThe span in the specification declaring the type declaration
Trait Implementations§
Source§impl Clone for TypeDeclField
impl Clone for TypeDeclField
Source§fn clone(&self) -> TypeDeclField
fn clone(&self) -> TypeDeclField
Returns a duplicate 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 TypeDeclField
impl Debug for TypeDeclField
Source§impl Display for TypeDeclField
impl Display for TypeDeclField
Source§impl Ord for TypeDeclField
impl Ord for TypeDeclField
Source§fn cmp(&self, other: &TypeDeclField) -> Ordering
fn cmp(&self, other: &TypeDeclField) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TypeDeclField
impl PartialEq for TypeDeclField
Source§impl PartialOrd for TypeDeclField
impl PartialOrd for TypeDeclField
impl Eq for TypeDeclField
impl StructuralPartialEq for TypeDeclField
Auto Trait Implementations§
impl Freeze for TypeDeclField
impl RefUnwindSafe for TypeDeclField
impl Send for TypeDeclField
impl Sync for TypeDeclField
impl Unpin for TypeDeclField
impl UnwindSafe for TypeDeclField
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