pub struct Durations<SC = Vec<u64>, NC = Vec<u32>> {
pub seconds: SC,
pub nanoseconds: NC,
}
Fields§
§seconds: SC
§nanoseconds: NC
Trait Implementations§
Source§impl<SC: PushIndexAs<u64>, NC: PushIndexAs<u32>> Container for Durations<SC, NC>
impl<SC: PushIndexAs<u64>, NC: PushIndexAs<u32>> Container for Durations<SC, NC>
Source§type Borrowed<'a> = Durations<<SC as Container>::Borrowed<'a>, <NC as Container>::Borrowed<'a>>
where
SC: 'a,
NC: 'a
type Borrowed<'a> = Durations<<SC as Container>::Borrowed<'a>, <NC as Container>::Borrowed<'a>> where SC: 'a, NC: 'a
The type of a borrowed container. Read more
Source§fn borrow<'a>(&'a self) -> Self::Borrowed<'a>
fn borrow<'a>(&'a self) -> Self::Borrowed<'a>
Converts a reference to the type to a borrowed variant.
Source§fn reborrow<'b, 'a: 'b>(thing: Self::Borrowed<'a>) -> Self::Borrowed<'b>where
SC: 'a,
NC: 'a,
fn reborrow<'b, 'a: 'b>(thing: Self::Borrowed<'a>) -> Self::Borrowed<'b>where
SC: 'a,
NC: 'a,
Reborrows the borrowed type to a shorter lifetime. See
Columnar::reborrow
for details.Source§fn reborrow_ref<'b, 'a: 'b>(thing: Self::Ref<'a>) -> Self::Ref<'b>where
Self: 'a,
fn reborrow_ref<'b, 'a: 'b>(thing: Self::Ref<'a>) -> Self::Ref<'b>where
Self: 'a,
Reborrows the borrowed type to a shorter lifetime. See
Columnar::reborrow
for details.fn reserve_for<'a, I>(&mut self, selves: I)
Source§impl<SC: IndexAs<u64>, NC: IndexAs<u32>> Index for Durations<SC, NC>
impl<SC: IndexAs<u64>, NC: IndexAs<u32>> Index for Durations<SC, NC>
Source§impl<'a, SC: for<'b> Push<&'b u64>, NC: for<'b> Push<&'b u32>> Push<&'a Duration> for Durations<SC, NC>
impl<'a, SC: for<'b> Push<&'b u64>, NC: for<'b> Push<&'b u32>> Push<&'a Duration> for Durations<SC, NC>
Source§impl<'a, SC: Push<&'a u64>, NC: Push<&'a u32>> Push<(&'a u64, &'a u32)> for Durations<SC, NC>
impl<'a, SC: Push<&'a u64>, NC: Push<&'a u32>> Push<(&'a u64, &'a u32)> for Durations<SC, NC>
Source§impl<SC: for<'a> Push<&'a u64>, NC: for<'a> Push<&'a u32>> Push<Duration> for Durations<SC, NC>
impl<SC: for<'a> Push<&'a u64>, NC: for<'a> Push<&'a u32>> Push<Duration> for Durations<SC, NC>
impl<SC: Copy, NC: Copy> Copy for Durations<SC, NC>
impl<SC, NC> StructuralPartialEq for Durations<SC, NC>
Auto Trait Implementations§
impl<SC, NC> Freeze for Durations<SC, NC>
impl<SC, NC> RefUnwindSafe for Durations<SC, NC>where
SC: RefUnwindSafe,
NC: RefUnwindSafe,
impl<SC, NC> Send for Durations<SC, NC>
impl<SC, NC> Sync for Durations<SC, NC>
impl<SC, NC> Unpin for Durations<SC, NC>
impl<SC, NC> UnwindSafe for Durations<SC, NC>where
SC: UnwindSafe,
NC: UnwindSafe,
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