pub enum AssignableKind {
MemberAccess(MemberAccessNode),
Identifier(IdentifierNode),
}
Expand description
Represents an assignable expression node in the AST.
Variants§
MemberAccess(MemberAccessNode)
Represents a member access node in the AST.
Identifier(IdentifierNode)
Represents an identifier node in the AST.
Implementations§
Source§impl AssignableKind
impl AssignableKind
Sourcepub fn set_ssa_version(&mut self, ssa_version: SsaVersion)
pub fn set_ssa_version(&mut self, ssa_version: SsaVersion)
Sets the SSA version of the assignable expression.
Sourcepub fn id_string(&self) -> String
pub fn id_string(&self) -> String
Returns the SSA string representation of the assignable expression.
Sourcepub fn ssa_version(&self) -> Option<SsaVersion>
pub fn ssa_version(&self) -> Option<SsaVersion>
Returns the SSA version of the assignable expression.
Sourcepub fn remove_ssa_version(&mut self)
pub fn remove_ssa_version(&mut self)
Remove the SSA version from the assignable expression.
Trait Implementations§
Source§impl AstVisitable for AssignableKind
impl AstVisitable for AssignableKind
Source§impl Clone for AssignableKind
impl Clone for AssignableKind
Source§fn clone(&self) -> AssignableKind
fn clone(&self) -> AssignableKind
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 AssignableKind
impl Debug for AssignableKind
Source§impl<'de> Deserialize<'de> for AssignableKind
impl<'de> Deserialize<'de> for AssignableKind
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<AssignableKind> for AstKind
impl From<AssignableKind> for AstKind
Source§fn from(id: AssignableKind) -> Self
fn from(id: AssignableKind) -> Self
Converts to this type from the input type.
Source§impl From<AssignableKind> for Box<AstKind>
impl From<AssignableKind> for Box<AstKind>
Source§fn from(id: AssignableKind) -> Self
fn from(id: AssignableKind) -> Self
Converts to this type from the input type.
Source§impl From<AssignableKind> for Box<ExprKind>
impl From<AssignableKind> for Box<ExprKind>
Source§fn from(id: AssignableKind) -> Self
fn from(id: AssignableKind) -> Self
Converts to this type from the input type.
Source§impl From<AssignableKind> for ExprKind
impl From<AssignableKind> for ExprKind
Source§fn from(id: AssignableKind) -> Self
fn from(id: AssignableKind) -> Self
Converts to this type from the input type.
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 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<MemberAccessNode> for AssignableKind
impl From<MemberAccessNode> for AssignableKind
Source§fn from(id: MemberAccessNode) -> Self
fn from(id: MemberAccessNode) -> Self
Converts to this type from the input type.
Source§impl From<MemberAccessNode> for Box<AssignableKind>
impl From<MemberAccessNode> for Box<AssignableKind>
Source§fn from(id: MemberAccessNode) -> Self
fn from(id: MemberAccessNode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AssignableKind
impl PartialEq for AssignableKind
Source§impl Serialize for AssignableKind
impl Serialize for AssignableKind
impl Eq for AssignableKind
Auto Trait Implementations§
impl Freeze for AssignableKind
impl RefUnwindSafe for AssignableKind
impl Send for AssignableKind
impl Sync for AssignableKind
impl Unpin for AssignableKind
impl UnwindSafe for AssignableKind
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.