Struct OptionCuTime
pub struct OptionCuTime(/* private fields */);
Expand description
Homebrewed Option<CuDuration>
to avoid using 128bits just to represent an Option.
Implementations§
§impl OptionCuTime
impl OptionCuTime
Trait Implementations§
§impl<'__de> BorrowDecode<'__de> for OptionCuTime
impl<'__de> BorrowDecode<'__de> for OptionCuTime
§fn borrow_decode<__D>(decoder: &mut __D) -> Result<OptionCuTime, DecodeError>where
__D: BorrowDecoder<'__de>,
fn borrow_decode<__D>(decoder: &mut __D) -> Result<OptionCuTime, DecodeError>where
__D: BorrowDecoder<'__de>,
Attempt to decode this type with the given BorrowDecode.
§impl Clone for OptionCuTime
impl Clone for OptionCuTime
§fn clone(&self) -> OptionCuTime
fn clone(&self) -> OptionCuTime
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 more§impl Debug for OptionCuTime
impl Debug for OptionCuTime
§impl Decode for OptionCuTime
impl Decode for OptionCuTime
§fn decode<__D>(decoder: &mut __D) -> Result<OptionCuTime, DecodeError>where
__D: Decoder,
fn decode<__D>(decoder: &mut __D) -> Result<OptionCuTime, DecodeError>where
__D: Decoder,
Attempt to decode this type with the given Decode.
§impl Default for OptionCuTime
impl Default for OptionCuTime
§fn default() -> OptionCuTime
fn default() -> OptionCuTime
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for OptionCuTime
impl<'de> Deserialize<'de> for OptionCuTime
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptionCuTime, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptionCuTime, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for OptionCuTime
impl Display for OptionCuTime
§impl Encode for OptionCuTime
impl Encode for OptionCuTime
§impl From<CuDuration> for OptionCuTime
impl From<CuDuration> for OptionCuTime
§fn from(val: CuDuration) -> OptionCuTime
fn from(val: CuDuration) -> OptionCuTime
Converts to this type from the input type.
§impl From<Option<CuDuration>> for OptionCuTime
impl From<Option<CuDuration>> for OptionCuTime
§fn from(duration: Option<CuDuration>) -> OptionCuTime
fn from(duration: Option<CuDuration>) -> OptionCuTime
Converts to this type from the input type.
§impl PartialEq for OptionCuTime
impl PartialEq for OptionCuTime
§impl Serialize for OptionCuTime
impl Serialize for OptionCuTime
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()
] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString
]. Read more