pub enum IdentifierAccess {
    Access(Access),
    DerefAccess(Access),
    FunctionCall(FunctionCall),
    Null,
}Variants§
Implementations§
Source§impl IdentifierAccess
 
impl IdentifierAccess
Sourcepub fn is_access(&self) -> bool
 
pub fn is_access(&self) -> bool
Returns true if this is a IdentifierAccess::Access, otherwise false
Sourcepub fn as_access_mut(&mut self) -> Option<&mut Access>
 
pub fn as_access_mut(&mut self) -> Option<&mut Access>
Optionally returns mutable references to the inner fields if this is a IdentifierAccess::Access, otherwise None
Sourcepub fn as_access(&self) -> Option<&Access>
 
pub fn as_access(&self) -> Option<&Access>
Optionally returns references to the inner fields if this is a IdentifierAccess::Access, otherwise None
Sourcepub fn into_access(self) -> Result<Access, Self>
 
pub fn into_access(self) -> Result<Access, Self>
Returns the inner fields if this is a IdentifierAccess::Access, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_deref_access(&self) -> bool
 
pub fn is_deref_access(&self) -> bool
Returns true if this is a IdentifierAccess::DerefAccess, otherwise false
Sourcepub fn as_deref_access_mut(&mut self) -> Option<&mut Access>
 
pub fn as_deref_access_mut(&mut self) -> Option<&mut Access>
Optionally returns mutable references to the inner fields if this is a IdentifierAccess::DerefAccess, otherwise None
Sourcepub fn as_deref_access(&self) -> Option<&Access>
 
pub fn as_deref_access(&self) -> Option<&Access>
Optionally returns references to the inner fields if this is a IdentifierAccess::DerefAccess, otherwise None
Sourcepub fn into_deref_access(self) -> Result<Access, Self>
 
pub fn into_deref_access(self) -> Result<Access, Self>
Returns the inner fields if this is a IdentifierAccess::DerefAccess, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_function_call(&self) -> bool
 
pub fn is_function_call(&self) -> bool
Returns true if this is a IdentifierAccess::FunctionCall, otherwise false
Sourcepub fn as_function_call_mut(&mut self) -> Option<&mut FunctionCall>
 
pub fn as_function_call_mut(&mut self) -> Option<&mut FunctionCall>
Optionally returns mutable references to the inner fields if this is a IdentifierAccess::FunctionCall, otherwise None
Sourcepub fn as_function_call(&self) -> Option<&FunctionCall>
 
pub fn as_function_call(&self) -> Option<&FunctionCall>
Optionally returns references to the inner fields if this is a IdentifierAccess::FunctionCall, otherwise None
Sourcepub fn into_function_call(self) -> Result<FunctionCall, Self>
 
pub fn into_function_call(self) -> Result<FunctionCall, Self>
Returns the inner fields if this is a IdentifierAccess::FunctionCall, otherwise returns back the enum in the Err case of the result
Trait Implementations§
Source§impl Clone for IdentifierAccess
 
impl Clone for IdentifierAccess
Source§fn clone(&self) -> IdentifierAccess
 
fn clone(&self) -> IdentifierAccess
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more