pub struct TupleStruct(/* private fields */);
Expand description
An example showing the semantics for tuple structs.
It is defined as follows:
#[make_constructor]
#[make_constructor(pub default_number)]
#[make_builder((field_1?))]
pub struct TupleStruct(
#[value(30 for default_number)] i32,
#[value("Unnamed".to_owned() for TupleStructBuilder)] String,
);
Implementations§
Source§impl TupleStruct
impl TupleStruct
Auto Trait Implementations§
impl Freeze for TupleStruct
impl RefUnwindSafe for TupleStruct
impl Send for TupleStruct
impl Sync for TupleStruct
impl Unpin for TupleStruct
impl UnwindSafe for TupleStruct
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