pub struct MirStructField {
pub name: String,
pub ty: MirTypeExpr,
}Expand description
Named field declaration for a MIR struct type.
Fields§
§name: StringUser-visible function or field name.
ty: MirTypeExprType expression declared for the field.
Trait Implementations§
Source§impl Clone for MirStructField
impl Clone for MirStructField
Source§fn clone(&self) -> MirStructField
fn clone(&self) -> MirStructField
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for MirStructField
impl RefUnwindSafe for MirStructField
impl Send for MirStructField
impl Sync for MirStructField
impl Unpin for MirStructField
impl UnwindSafe for MirStructField
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