#[non_exhaustive]pub struct MetaRef<'a> {
pub context: bool,
pub hash: Hash,
pub item: &'a Item,
pub kind: &'a Kind,
pub source: Option<&'a SourceMeta>,
}
Expand description
A meta reference to an item being compiled.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.context: bool
If the meta comes from the context or not.
hash: Hash
The hash of a meta item.
item: &'a Item
The item being described.
kind: &'a Kind
The kind of the item.
source: Option<&'a SourceMeta>
The source of the meta.
Trait Implementations§
impl<'a> Copy for MetaRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for MetaRef<'a>
impl<'a> RefUnwindSafe for MetaRef<'a>
impl<'a> Send for MetaRef<'a>
impl<'a> Sync for MetaRef<'a>
impl<'a> Unpin for MetaRef<'a>
impl<'a> UnwindSafe for MetaRef<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)