pub struct MetaRef<'a, T: 'a> { /* private fields */ }
Implementations
sourceimpl<'a> MetaRef<'a, Meta>
impl<'a> MetaRef<'a, Meta>
pub fn downcast_ref<T: MetaAPI>(&self) -> Option<&MetaRef<'a, T>>
pub fn try_as_custom_meta(&self) -> Option<&MetaRef<'a, CustomMeta>>
Available on crate feature
v1_20
only.Trait Implementations
sourceimpl<'a, T, U> AsRef<MetaRef<'a, T>> for MetaRefMut<'a, T, U>
impl<'a, T, U> AsRef<MetaRef<'a, T>> for MetaRefMut<'a, T, U>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for MetaRef<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for MetaRef<'a, T> where
T: Sync,
impl<'a, T> Sync for MetaRef<'a, T> where
T: Sync,
impl<'a, T> Unpin for MetaRef<'a, T>
impl<'a, T> UnwindSafe for MetaRef<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more