pub struct ExprMetadata { /* private fields */ }Expand description
User-facing annotations and origin information for an expression node.
Implementations§
Source§impl ExprMetadata
impl ExprMetadata
Sourcepub fn new(source: ExprSourceKind) -> Self
pub fn new(source: ExprSourceKind) -> Self
Creates metadata for the given source category.
Sourcepub fn source(&self) -> ExprSourceKind
pub fn source(&self) -> ExprSourceKind
Returns the node’s source category.
Returns the user-assigned tags.
Trait Implementations§
Source§impl Clone for ExprMetadata
impl Clone for ExprMetadata
Source§fn clone(&self) -> ExprMetadata
fn clone(&self) -> ExprMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExprMetadata
impl Debug for ExprMetadata
Source§impl<'de> Deserialize<'de> for ExprMetadata
impl<'de> Deserialize<'de> for ExprMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExprMetadata
Source§impl PartialEq for ExprMetadata
impl PartialEq for ExprMetadata
Source§impl Serialize for ExprMetadata
impl Serialize for ExprMetadata
impl StructuralPartialEq for ExprMetadata
Auto Trait Implementations§
impl Freeze for ExprMetadata
impl RefUnwindSafe for ExprMetadata
impl Send for ExprMetadata
impl Sync for ExprMetadata
impl Unpin for ExprMetadata
impl UnsafeUnpin for ExprMetadata
impl UnwindSafe for ExprMetadata
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