pub struct Slice<'a> {
pub iface: &'a IfaceId,
pub token: KindToken,
pub template: &'a Template,
pub targets: &'a [TargetParam],
}Expand description
The desired resource a requirement binds (§2.3): its interface, kind token, template and target parameters.
Fields§
§iface: &'a IfaceId§token: KindToken§template: &'a Template§targets: &'a [TargetParam]Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Slice<'a>
impl<'a> Freeze for Slice<'a>
impl<'a> Move for Slice<'a>
impl<'a> RefUnwindSafe for Slice<'a>
impl<'a> Send for Slice<'a>
impl<'a> Sync for Slice<'a>where
RawVecInner: Sync,
impl<'a> Unpin for Slice<'a>
impl<'a> UnsafeUnpin for Slice<'a>
impl<'a> UnwindSafe for Slice<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more