Struct CuTimeRange
pub struct CuTimeRange {
pub start: CuDuration,
pub end: CuDuration,
}
Expand description
Represents a time range.
Fields§
§start: CuDuration
§end: CuDuration
Trait Implementations§
§impl<'__de> BorrowDecode<'__de> for CuTimeRange
impl<'__de> BorrowDecode<'__de> for CuTimeRange
§fn borrow_decode<__D>(decoder: &mut __D) -> Result<CuTimeRange, DecodeError>where
__D: BorrowDecoder<'__de>,
fn borrow_decode<__D>(decoder: &mut __D) -> Result<CuTimeRange, DecodeError>where
__D: BorrowDecoder<'__de>,
Attempt to decode this type with the given BorrowDecode.
§impl Clone for CuTimeRange
impl Clone for CuTimeRange
§fn clone(&self) -> CuTimeRange
fn clone(&self) -> CuTimeRange
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 CuTimeRange
impl Debug for CuTimeRange
§impl Decode for CuTimeRange
impl Decode for CuTimeRange
§fn decode<__D>(decoder: &mut __D) -> Result<CuTimeRange, DecodeError>where
__D: Decoder,
fn decode<__D>(decoder: &mut __D) -> Result<CuTimeRange, DecodeError>where
__D: Decoder,
Attempt to decode this type with the given Decode.
§impl<'de> Deserialize<'de> for CuTimeRange
impl<'de> Deserialize<'de> for CuTimeRange
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CuTimeRange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CuTimeRange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Encode for CuTimeRange
impl Encode for CuTimeRange
§impl From<&[CuDuration]> for CuTimeRange
Builds a time range from a slice of CuTime.
This is an O(n) operation.
impl From<&[CuDuration]> for CuTimeRange
Builds a time range from a slice of CuTime. This is an O(n) operation.
§fn from(slice: &[CuDuration]) -> CuTimeRange
fn from(slice: &[CuDuration]) -> CuTimeRange
Converts to this type from the input type.
§impl PartialEq for CuTimeRange
impl PartialEq for CuTimeRange
§impl Serialize for CuTimeRange
impl Serialize for CuTimeRange
§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 CuTimeRange
impl StructuralPartialEq for CuTimeRange
Auto Trait Implementations§
impl Freeze for CuTimeRange
impl RefUnwindSafe for CuTimeRange
impl Send for CuTimeRange
impl Sync for CuTimeRange
impl Unpin for CuTimeRange
impl UnwindSafe for CuTimeRange
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