ObjectMarker

Struct ObjectMarker 

Source
pub struct ObjectMarker<T: ?Sized> { /* private fields */ }

Trait Implementations§

Source§

impl<T: ?Sized> Default for ObjectMarker<T>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T: ?Sized, __I: ParseInput> Parse<__I> for ObjectMarker<T>
where PhantomData<fn() -> T>: Parse<__I>,

Source§

fn parse(input: __I) -> Result<Self>

Source§

impl<T: ?Sized, __I: ParseInput> ParseInline<__I> for ObjectMarker<T>
where PhantomData<fn() -> T>: ParseInline<__I>,

Source§

fn parse_inline(input: &mut __I) -> Result<Self>

Source§

fn parse_as_inline(input: I) -> Result<Self>

Source§

fn parse_vec(input: I) -> Result<Vec<Self>>

Source§

impl<T: ?Sized + Tagged> Tagged for ObjectMarker<T>

Source§

const TAGS: Tags = _

Source§

const HASH: Hash = _

Source§

impl<T: ?Sized> ToOutput for ObjectMarker<T>
where PhantomData<fn() -> T>: ToOutput,

Source§

fn to_output(&self, output: &mut dyn Output)

Source§

fn data_hash(&self) -> Hash

Source§

fn slice_to_output(slice: &[Self], output: &mut dyn Output)
where Self: Sized,

Source§

fn output<T: Output + Default>(&self) -> T

Source§

fn vec(&self) -> Vec<u8>

Source§

impl<T: ?Sized> Topological for ObjectMarker<T>
where PhantomData<fn() -> T>: Topological,

Source§

fn accept_points(&self, visitor: &mut impl PointVisitor)

Source§

fn topology_hash(&self) -> Hash

Source§

fn point_count(&self) -> usize

Source§

fn topology(&self) -> TopoVec

Source§

impl<T: ?Sized + 'static + Tagged, Extra: 'static> Inline<Extra> for ObjectMarker<T>

Source§

impl<T: ?Sized + 'static + Tagged, Extra: 'static> Object<Extra> for ObjectMarker<T>

Auto Trait Implementations§

§

impl<T> Freeze for ObjectMarker<T>
where T: ?Sized,

§

impl<T> RefUnwindSafe for ObjectMarker<T>
where T: ?Sized,

§

impl<T> Send for ObjectMarker<T>
where T: ?Sized,

§

impl<T> Sync for ObjectMarker<T>
where T: ?Sized,

§

impl<T> Unpin for ObjectMarker<T>
where T: ?Sized,

§

impl<T> UnwindSafe for ObjectMarker<T>
where T: ?Sized,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsAny for T

Source§

fn any_ref(&self) -> &(dyn Any + 'static)
where T: 'static,

Get a shared RTTI reference.
Source§

fn any_mut(&mut self) -> &mut (dyn Any + 'static)
where T: 'static,

Get an exclusive RTTI reference.
Source§

fn any_box(self: Box<T>) -> Box<dyn Any>
where T: 'static,

Get an RTTI Box.
Source§

fn any_arc(self: Arc<T>) -> Arc<dyn Any>
where T: 'static,

Get an RTTI Arc.
Source§

fn any_arc_sync(self: Arc<T>) -> Arc<dyn Any + Sync + Send>
where T: 'static + Send + Sync,

Get an RTTI Arc which is also Send.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FullHash for T
where T: ToOutput + Topological + Tagged + ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ParseSlice for T
where T: for<'a> Parse<Input<'a>>,

Source§

fn parse_slice(data: &[u8], resolve: &Arc<dyn Resolve>) -> Result<Self>

Source§

impl<T, Extra> ParseSliceExtra<Extra> for T
where T: for<'a> Parse<Input<'a, Extra>>,

Source§

fn parse_slice_extra( data: &[u8], resolve: &Arc<dyn Resolve>, extra: &Extra, ) -> Result<Self>

Source§

impl<T> ParseSliceRefless for T
where T: for<'a> Parse<ReflessInput<'a>>,

Source§

fn parse_slice_refless(data: &[u8]) -> Result<Self>

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Traversible for T
where T: 'static + Send + Sync + FullHash,

Source§

fn to_resolve(&self) -> Arc<dyn Resolve>

Source§

fn point(self) -> Point<Self>
where Self: Clone,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.