Struct erg_compiler::ty::vis::Field
source · pub struct Field {
pub vis: VisibilityModifier,
pub symbol: Str,
}
Expand description
same structure as Identifier
, but only for Record fields.
Fields§
§vis: VisibilityModifier
§symbol: Str
Implementations§
Trait Implementations§
source§impl From<&Identifier> for Field
impl From<&Identifier> for Field
source§fn from(ident: &Identifier) -> Self
fn from(ident: &Identifier) -> Self
Converts to this type from the input type.
source§impl PartialEq for Field
impl PartialEq for Field
impl Eq for Field
impl StructuralEq for Field
Auto Trait Implementations§
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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