pub struct OptionCuTime(/* private fields */);Expand description
Homebrewed Option<CuDuration> to avoid using 128bits just to represent an Option.
Implementations§
Source§impl OptionCuTime
impl OptionCuTime
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for OptionCuTime
impl<'__de, __Context> BorrowDecode<'__de, __Context> for OptionCuTime
Source§fn borrow_decode<__D>(decoder: &mut __D) -> Result<OptionCuTime, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
fn borrow_decode<__D>(decoder: &mut __D) -> Result<OptionCuTime, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OptionCuTime
Source§impl Debug for OptionCuTime
impl Debug for OptionCuTime
Source§impl<__Context> Decode<__Context> for OptionCuTime
impl<__Context> Decode<__Context> for OptionCuTime
Source§fn decode<__D>(decoder: &mut __D) -> Result<OptionCuTime, DecodeError>where
__D: Decoder<Context = __Context>,
fn decode<__D>(decoder: &mut __D) -> Result<OptionCuTime, DecodeError>where
__D: Decoder<Context = __Context>,
Attempt to decode this type with the given Decode.
Source§impl Default for OptionCuTime
impl Default for OptionCuTime
Source§fn default() -> OptionCuTime
fn default() -> OptionCuTime
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OptionCuTime
impl<'de> Deserialize<'de> for OptionCuTime
Source§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
Source§impl Display for OptionCuTime
impl Display for OptionCuTime
Source§impl Encode for OptionCuTime
impl Encode for OptionCuTime
Source§impl From<CuTime> for OptionCuTime
impl From<CuTime> for OptionCuTime
Source§fn from(val: CuTime) -> OptionCuTime
fn from(val: CuTime) -> OptionCuTime
Converts to this type from the input type.
Source§impl PartialEq for OptionCuTime
impl PartialEq for OptionCuTime
Source§fn eq(&self, other: &OptionCuTime) -> bool
fn eq(&self, other: &OptionCuTime) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OptionCuTime
impl Serialize for OptionCuTime
Source§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 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 UnsafeUnpin 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> CuMsgPayload for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> ElementType for T
impl<T> ElementType for T
impl<T> GetTypeRegistration for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PayloadDefaultHandlePolicyApply for Twhere
T: ?Sized,
impl<T> PayloadDefaultHandlePolicyApply for Twhere
T: ?Sized,
fn apply_handle_content_policy(&self, _mode: HandleContent)
Source§impl<T> PayloadDefaultLoggingPolicy for Twhere
T: ?Sized,
impl<T> PayloadDefaultLoggingPolicy for Twhere
T: ?Sized,
fn payload_should_log(&self) -> bool
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Reflect for Twhere
T: 'static,
impl<T> ReflectTypePath for T
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§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 moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more