pub struct Target<'d, Tag: Tag> { /* private fields */ }Expand description
One generation-checked target branded by its driver lifetime and route.
ⓘ
use dope_core::driver::route::{KeyTag, Target};
fn rebrand<'a, 'b>(target: Target<'a, KeyTag<1>>) -> Target<'b, KeyTag<1>> {
target
}Implementations§
Source§impl<'d, Tag: Tag> Target<'d, Tag>
impl<'d, Tag: Tag> Target<'d, Tag>
pub const fn parts(self) -> Parts<Tag>
pub const fn slot(self) -> SlotIndex
pub const fn epoch(self) -> Epoch
pub const fn bind<T>(self, value: T) -> Bound<'d, Tag, T>
pub const fn operation(self, kind: u8) -> Operation<'d, Tag>
pub const fn dispatch(self) -> Operation<'d, Tag>
Trait Implementations§
impl<'d, Tag: Copy + Tag> Copy for Target<'d, Tag>
impl<Tag: Tag> Eq for Target<'_, Tag>
Auto Trait Implementations§
impl<'d, Tag> !Send for Target<'d, Tag>
impl<'d, Tag> !Sync for Target<'d, Tag>
impl<'d, Tag> Freeze for Target<'d, Tag>
impl<'d, Tag> RefUnwindSafe for Target<'d, Tag>where
Tag: RefUnwindSafe,
impl<'d, Tag> Unpin for Target<'d, Tag>
impl<'d, Tag> UnsafeUnpin for Target<'d, Tag>
impl<'d, Tag> UnwindSafe for Target<'d, Tag>where
Tag: RefUnwindSafe,
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