pub struct SemanticId {
pub stable: String,
pub expr: Option<Expr>,
}Expand description
Stable identity for a semantic expression.
Fields§
§stable: StringStable display id for comparing Prism results.
expr: Option<Expr>The expression behind the id, retained for immediate re-encoding.
Implementations§
Trait Implementations§
Source§impl Clone for SemanticId
impl Clone for SemanticId
Source§fn clone(&self) -> SemanticId
fn clone(&self) -> SemanticId
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 SemanticId
impl Debug for SemanticId
impl Eq for SemanticId
Source§impl PartialEq for SemanticId
impl PartialEq for SemanticId
Source§fn eq(&self, other: &SemanticId) -> bool
fn eq(&self, other: &SemanticId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SemanticId
Auto Trait Implementations§
impl Freeze for SemanticId
impl RefUnwindSafe for SemanticId
impl Send for SemanticId
impl Sync for SemanticId
impl Unpin for SemanticId
impl UnsafeUnpin for SemanticId
impl UnwindSafe for SemanticId
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