pub struct OptionCuTime(/* private fields */);
Expand description
Homebrewed Option<CuDuration>
to avoid using 128bits just to represent an Option.
Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for OptionCuTime
impl<'__de, __Context> BorrowDecode<'__de, __Context> for OptionCuTime
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for OptionCuTime
impl Clone for OptionCuTime
Source§fn clone(&self) -> OptionCuTime
fn clone(&self) -> OptionCuTime
Returns a duplicate 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 OptionCuTime
impl Debug for OptionCuTime
Source§impl<__Context> Decode<__Context> for OptionCuTime
impl<__Context> Decode<__Context> for OptionCuTime
Source§impl Default for OptionCuTime
impl Default for OptionCuTime
Source§impl<'de> Deserialize<'de> for OptionCuTime
impl<'de> Deserialize<'de> for OptionCuTime
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OptionCuTime
impl Display for OptionCuTime
Source§impl Encode for OptionCuTime
impl Encode for OptionCuTime
Source§impl From<CuDuration> for OptionCuTime
impl From<CuDuration> for OptionCuTime
Source§impl From<Option<CuDuration>> for OptionCuTime
impl From<Option<CuDuration>> for OptionCuTime
Source§impl From<OptionCuTime> for Option<CuTime>
impl From<OptionCuTime> for Option<CuTime>
Source§fn from(val: OptionCuTime) -> Self
fn from(val: OptionCuTime) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OptionCuTime
impl PartialEq for OptionCuTime
Source§impl Serialize for OptionCuTime
impl Serialize for OptionCuTime
impl Copy for OptionCuTime
impl StructuralPartialEq for OptionCuTime
Auto Trait Implementations§
impl Freeze for OptionCuTime
impl RefUnwindSafe for OptionCuTime
impl Send for OptionCuTime
impl Sync for OptionCuTime
impl Unpin for OptionCuTime
impl UnwindSafe for OptionCuTime
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