pub struct StructNewDefault {
pub ty: TypeId,
}Expand description
struct.new_default - create a new struct with default field values
All fields are initialized to their default values (0 for numerics, null for references). Pushes a non-null reference to the new struct.
Fields§
§ty: TypeIdThe struct type being instantiated.
Trait Implementations§
Source§impl Clone for StructNewDefault
impl Clone for StructNewDefault
Source§impl Debug for StructNewDefault
impl Debug for StructNewDefault
Source§impl From<StructNewDefault> for Instr
impl From<StructNewDefault> for Instr
Source§fn from(x: StructNewDefault) -> Instr
fn from(x: StructNewDefault) -> Instr
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StructNewDefault
impl RefUnwindSafe for StructNewDefault
impl Send for StructNewDefault
impl Sync for StructNewDefault
impl Unpin for StructNewDefault
impl UnsafeUnpin for StructNewDefault
impl UnwindSafe for StructNewDefault
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