pub struct Dep<Head, Tail>(pub Head, pub Tail);Expand description
Static dependency container (Heterogeneous List).
This structure allows storing mixed types of dependencies and accessing them in a zero-cost manner (offsets calculated at compile time).
Tuple Fields§
§0: Head§1: TailImplementations§
Trait Implementations§
Source§impl<Head, Tail, T, Index> Has<T, There<Index>> for Dep<Head, Tail>where
Tail: Has<T, Index>,
Recursive case: The item is not in Head, look into Tail.
impl<Head, Tail, T, Index> Has<T, There<Index>> for Dep<Head, Tail>where
Tail: Has<T, Index>,
Recursive case: The item is not in Head, look into Tail.
impl<Head: Copy, Tail: Copy> Copy for Dep<Head, Tail>
Auto Trait Implementations§
impl<Head, Tail> Freeze for Dep<Head, Tail>
impl<Head, Tail> RefUnwindSafe for Dep<Head, Tail>where
Head: RefUnwindSafe,
Tail: RefUnwindSafe,
impl<Head, Tail> Send for Dep<Head, Tail>
impl<Head, Tail> Sync for Dep<Head, Tail>
impl<Head, Tail> Unpin for Dep<Head, Tail>
impl<Head, Tail> UnsafeUnpin for Dep<Head, Tail>where
Head: UnsafeUnpin,
Tail: UnsafeUnpin,
impl<Head, Tail> UnwindSafe for Dep<Head, Tail>where
Head: UnwindSafe,
Tail: 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