Struct wolfram_expr::symbol::SymbolName
source · pub struct SymbolName(_);Expand description
The identifier portion of a symbol. This contains no context marks (‘`’).
In the symbol Global`foo, the SymbolName is "foo".
Implementations§
source§impl SymbolName
impl SymbolName
sourcepub fn try_new(input: &str) -> Option<SymbolName>
pub fn try_new(input: &str) -> Option<SymbolName>
Attempt to parse input as a symbol name.
A symbol name is a symbol without any context marks.
sourcepub fn as_symbol_name_ref(&self) -> SymbolNameRef<'_>
pub fn as_symbol_name_ref(&self) -> SymbolNameRef<'_>
Get a borrowed SymbolNameRef from this SymbolName.
Trait Implementations§
source§impl Clone for SymbolName
impl Clone for SymbolName
source§fn clone(&self) -> SymbolName
fn clone(&self) -> SymbolName
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 SymbolName
impl Debug for SymbolName
source§impl Display for SymbolName
impl Display for SymbolName
source§impl Hash for SymbolName
impl Hash for SymbolName
source§impl Ord for SymbolName
impl Ord for SymbolName
source§fn cmp(&self, other: &SymbolName) -> Ordering
fn cmp(&self, other: &SymbolName) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SymbolName> for SymbolName
impl PartialEq<SymbolName> for SymbolName
source§fn eq(&self, other: &SymbolName) -> bool
fn eq(&self, other: &SymbolName) -> bool
source§impl PartialOrd<SymbolName> for SymbolName
impl PartialOrd<SymbolName> for SymbolName
source§fn partial_cmp(&self, other: &SymbolName) -> Option<Ordering>
fn partial_cmp(&self, other: &SymbolName) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more