pub struct IdentifierNode {
pub ssa_version: Option<SsaVersion>,
/* private fields */
}
Expand description
Represents a type of literal.
Fields§
§ssa_version: Option<SsaVersion>
Represents the SSA version of a variable.
Implementations§
Source§impl IdentifierNode
impl IdentifierNode
Sourcepub fn with_ssa<S: Into<String>>(s: S, ssa_version: SsaVersion) -> Self
pub fn with_ssa<S: Into<String>>(s: S, ssa_version: SsaVersion) -> Self
Creates a new IdentifierNode
with an SSA version from any type that can be converted into a String
.
This is useful for creating an IdentifierNode
with an SSA version.
§Arguments
s
: The input string-like type.ssa_version
: The SSA version of the identifier.
§Returns
- An
IdentifierNode
instance containing the provided identifier and SSA version.
Trait Implementations§
Source§impl AstVisitable for IdentifierNode
impl AstVisitable for IdentifierNode
Source§impl Clone for IdentifierNode
impl Clone for IdentifierNode
Source§fn clone(&self) -> IdentifierNode
fn clone(&self) -> IdentifierNode
Returns a copy of the value. Read more
1.0.0 · 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 IdentifierNode
impl Debug for IdentifierNode
Source§impl<'de> Deserialize<'de> for IdentifierNode
impl<'de> Deserialize<'de> for IdentifierNode
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
Source§impl From<IdentifierNode> for AssignableKind
impl From<IdentifierNode> for AssignableKind
Source§fn from(id: IdentifierNode) -> Self
fn from(id: IdentifierNode) -> Self
Converts to this type from the input type.
Source§impl From<IdentifierNode> for AstKind
impl From<IdentifierNode> for AstKind
Source§fn from(id: IdentifierNode) -> Self
fn from(id: IdentifierNode) -> Self
Converts to this type from the input type.
Source§impl From<IdentifierNode> for Box<AssignableKind>
impl From<IdentifierNode> for Box<AssignableKind>
Source§fn from(id: IdentifierNode) -> Self
fn from(id: IdentifierNode) -> Self
Converts to this type from the input type.
Source§impl From<IdentifierNode> for Box<AstKind>
impl From<IdentifierNode> for Box<AstKind>
Source§fn from(id: IdentifierNode) -> Self
fn from(id: IdentifierNode) -> Self
Converts to this type from the input type.
Source§impl From<IdentifierNode> for Box<ExprKind>
impl From<IdentifierNode> for Box<ExprKind>
Source§fn from(id: IdentifierNode) -> Self
fn from(id: IdentifierNode) -> Self
Converts to this type from the input type.
Source§impl From<IdentifierNode> for ExprKind
impl From<IdentifierNode> for ExprKind
Source§fn from(id: IdentifierNode) -> Self
fn from(id: IdentifierNode) -> Self
Converts to this type from the input type.
Source§impl Hash for IdentifierNode
impl Hash for IdentifierNode
Source§impl PartialEq for IdentifierNode
impl PartialEq for IdentifierNode
Source§impl Serialize for IdentifierNode
impl Serialize for IdentifierNode
impl Eq for IdentifierNode
impl StructuralPartialEq for IdentifierNode
Auto Trait Implementations§
impl Freeze for IdentifierNode
impl RefUnwindSafe for IdentifierNode
impl Send for IdentifierNode
impl Sync for IdentifierNode
impl Unpin for IdentifierNode
impl UnwindSafe for IdentifierNode
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.