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
sourceimpl 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
.
sourceimpl SymbolName
impl SymbolName
Trait Implementations
sourceimpl Clone for SymbolName
impl Clone for SymbolName
sourcefn clone(&self) -> SymbolName
fn clone(&self) -> SymbolName
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SymbolName
impl Debug for SymbolName
sourceimpl Display for SymbolName
impl Display for SymbolName
sourceimpl Hash for SymbolName
impl Hash for SymbolName
sourceimpl Ord for SymbolName
impl Ord for SymbolName
sourceimpl PartialEq<SymbolName> for SymbolName
impl PartialEq<SymbolName> for SymbolName
sourcefn eq(&self, other: &SymbolName) -> bool
fn eq(&self, other: &SymbolName) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SymbolName) -> bool
fn ne(&self, other: &SymbolName) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SymbolName> for SymbolName
impl PartialOrd<SymbolName> for SymbolName
sourcefn partial_cmp(&self, other: &SymbolName) -> Option<Ordering>
fn partial_cmp(&self, other: &SymbolName) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Eq for SymbolName
impl StructuralEq for SymbolName
impl StructuralPartialEq for SymbolName
Auto Trait Implementations
impl RefUnwindSafe for SymbolName
impl Send for SymbolName
impl Sync for SymbolName
impl Unpin for SymbolName
impl UnwindSafe for SymbolName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more