DynMetaTuple

Struct DynMetaTuple 

Source
#[repr(transparent)]
pub struct DynMetaTuple(pub dyn MetaAny);
Expand description

MetaTuple implementation for dyn MetaAny.

Tuple Fields§

§0: dyn MetaAny

Implementations§

Source§

impl DynMetaTuple

Source

pub fn from_ref(r: &dyn MetaAny) -> &Self

Source

pub fn from_mut(r: &mut dyn MetaAny) -> &mut Self

Trait Implementations§

Source§

impl MetaAny for DynMetaTuple

Source§

impl MetaTuple for DynMetaTuple

Source§

fn get<T: 'static>(&self) -> Option<&T>

Obtain an item, if exists.
Source§

fn get_mut<T: 'static>(&mut self) -> Option<&mut T>

Obtain a mutable item, if exists.
Source§

fn get_mut_ptr<T: 'static>(&self) -> Option<*mut T>

Obtain a mutable item as pointer, if exists.
Source§

fn query_ref<T: MetaQuery>(&self) -> Option<T::Output<'_>>

Try obtain multiple values from the MetaTuple.
Source§

fn query_mut<T: MetaQuery>(&mut self) -> Option<T::Output<'_>>

Try obtain multiple values from the MetaTuple.

Auto Trait Implementations§

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> 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> Is for T
where T: ?Sized,

Source§

type EqTo = T