Struct Marked
pub(in ::bridge) struct Marked<T, M> { pub(in ::bridge) value: T, pub(in ::bridge) _marker: PhantomData<M> }
Fields
value: T_marker: PhantomData<M>
Trait Implementations
impl<S: Server> Decode<'_, '_, HandleStore<S>> for Marked<<S as Server>::Span, Span>
fn decode(r: &mut &[u8], s: &mut HandleStore<S>) -> Self
impl<S: Server> Decode<'_, '_, HandleStore<S>> for Marked<<S as Server>::Symbol, Symbol>
fn decode(r: &mut &[u8], s: &mut HandleStore<S>) -> Self
impl<S: Server> Decode<'_, '_, HandleStore<S>> for Marked<<S as Server>::TokenStream, TokenStream>
fn decode(r: &mut &[u8], s: &mut HandleStore<S>) -> Self
impl<S: Server> Encode<HandleStore<S>> for Marked<<S as Server>::Span, Span>
fn encode(self, w: &mut Buffer, s: &mut HandleStore<S>)
impl<S: Server> Encode<HandleStore<S>> for Marked<<S as Server>::Symbol, Symbol>
fn encode(self, w: &mut Buffer, s: &mut HandleStore<S>)
impl<S: Server> Encode<HandleStore<S>> for Marked<<S as Server>::TokenStream, TokenStream>
fn encode(self, w: &mut Buffer, s: &mut HandleStore<S>)
impl<T, M> Mark for Marked<T, M>
type Unmarked = T;fn mark(unmarked: Self::Unmarked) -> Selffn unmark(self) -> Self::Unmarked
impl<T: Clone, M: Clone> Clone for Marked<T, M>
fn clone(&self) -> Marked<T, M>
impl<T: Copy, M: Copy> Copy for Marked<T, M>
impl<T: Eq, M: Eq> Eq for Marked<T, M>
fn assert_fields_are_eq(&self)
impl<T: Hash, M: Hash> Hash for Marked<T, M>
fn hash<__H: Hasher>(&self, state: &mut __H)
impl<T: PartialEq, M: PartialEq> PartialEq for Marked<T, M>
fn eq(&self, other: &Marked<T, M>) -> bool
impl<T: PartialEq, M: PartialEq> StructuralPartialEq for Marked<T, M>
Auto Trait Implementations
impl<T, M> Freeze for Marked<T, M>
where
T: Freeze,
PhantomData<M>: Freeze,
impl<T, M> RefUnwindSafe for Marked<T, M>
where
T: RefUnwindSafe,
PhantomData<M>: RefUnwindSafe,
impl<T, M> Send for Marked<T, M>
where
T: Send,
PhantomData<M>: Send,
impl<T, M> Sync for Marked<T, M>
where
T: Sync,
PhantomData<M>: Sync,
impl<T, M> Unpin for Marked<T, M>
where
T: Unpin,
PhantomData<M>: Unpin,
impl<T, M> UnsafeUnpin for Marked<T, M>
where
T: UnsafeUnpin,
PhantomData<M>: UnsafeUnpin,
impl<T, M> UnwindSafe for Marked<T, M>
where
T: UnwindSafe,
PhantomData<M>: UnwindSafe,
Blanket Implementations
impl<T> Any for Marked<T, M>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Marked<T, M>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Marked<T, M>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Marked<T, M>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Marked<T, M>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Marked<T, M>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Marked<T, M>
impl<T> ToOwned for Marked<T, M>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Marked<T, M>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Marked<T, M>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Marked<T, M>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>