pub struct Segments<T, const N: usize>(/* private fields */);Expand description
container for storing id segments
wrapper around an array with a fixed size
Implementations§
Source§impl<T> Segments<T, 1>
impl<T> Segments<T, 1>
Sourcepub fn from_parts(p: T) -> Self
pub fn from_parts(p: T) -> Self
creates container from 1 segment
Source§impl<T> Segments<T, 3>
impl<T> Segments<T, 3>
Sourcepub fn from_parts(p: T, s: T, t: T) -> Self
pub fn from_parts(p: T, s: T, t: T) -> Self
creates container from 3 segments
Trait Implementations§
Auto Trait Implementations§
impl<T, const N: usize> Freeze for Segments<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for Segments<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for Segments<T, N>where
T: Send,
impl<T, const N: usize> Sync for Segments<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for Segments<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for Segments<T, N>where
T: 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