pub struct OptionStruct {
pub version: i16,
}
Expand description
An optional structure
Fields§
§version: i16
The version of the struct.
Trait Implementations§
Source§impl Clone for OptionStruct
impl Clone for OptionStruct
Source§fn clone(&self) -> OptionStruct
fn clone(&self) -> OptionStruct
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 moreSource§impl Debug for OptionStruct
impl Debug for OptionStruct
impl Copy for OptionStruct
Auto Trait Implementations§
impl Freeze for OptionStruct
impl RefUnwindSafe for OptionStruct
impl Send for OptionStruct
impl Sync for OptionStruct
impl Unpin for OptionStruct
impl UnwindSafe for OptionStruct
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