pub struct TypedField {
pub name: String,
pub ty: QalaType,
pub span: Span,
}Expand description
one typed field of a struct: a name and a resolved type.
Fields§
§name: Stringthe field name.
ty: QalaTypethe field’s resolved type.
span: Spanthe field’s source span (name to type).
Trait Implementations§
Source§impl Clone for TypedField
impl Clone for TypedField
Source§fn clone(&self) -> TypedField
fn clone(&self) -> TypedField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TypedField
impl Debug for TypedField
Source§impl PartialEq for TypedField
impl PartialEq for TypedField
Source§fn eq(&self, other: &TypedField) -> bool
fn eq(&self, other: &TypedField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypedField
Auto Trait Implementations§
impl Freeze for TypedField
impl RefUnwindSafe for TypedField
impl Send for TypedField
impl Sync for TypedField
impl Unpin for TypedField
impl UnsafeUnpin for TypedField
impl UnwindSafe for TypedField
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