pub struct MirStructDecl {
pub name: String,
pub type_params: Vec<String>,
pub fields: Vec<MirStructField>,
}Expand description
Struct declaration retained for backend aggregate emission.
Fields§
§name: StringUser-visible function or field name.
type_params: Vec<String>Generic type parameters declared on the struct.
fields: Vec<MirStructField>Fields declared on the struct.
Trait Implementations§
Source§impl Clone for MirStructDecl
impl Clone for MirStructDecl
Source§fn clone(&self) -> MirStructDecl
fn clone(&self) -> MirStructDecl
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 MirStructDecl
impl RefUnwindSafe for MirStructDecl
impl Send for MirStructDecl
impl Sync for MirStructDecl
impl Unpin for MirStructDecl
impl UnwindSafe for MirStructDecl
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