Struct wolfram_expr::symbol::RelativeContext
source · [−]pub struct RelativeContext(_);
Expand description
Context begining with a `
.
Implementations
sourceimpl RelativeContext
impl RelativeContext
sourcepub fn components(&self) -> Vec<SymbolNameRef<'_>>
pub fn components(&self) -> Vec<SymbolNameRef<'_>>
Return the components of this RelativeContext
.
use wolfram_expr::symbol::RelativeContext;
let context = RelativeContext::try_new("`Sub`Module`").unwrap();
let components = context.components();
assert!(components.len() == 2);
assert!(components[0].as_str() == "Sub");
assert!(components[1].as_str() == "Module");
Trait Implementations
sourceimpl Clone for RelativeContext
impl Clone for RelativeContext
sourcefn clone(&self) -> RelativeContext
fn clone(&self) -> RelativeContext
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 RelativeContext
impl Debug for RelativeContext
sourceimpl Display for RelativeContext
impl Display for RelativeContext
sourceimpl Hash for RelativeContext
impl Hash for RelativeContext
sourceimpl Ord for RelativeContext
impl Ord for RelativeContext
sourceimpl PartialEq<RelativeContext> for RelativeContext
impl PartialEq<RelativeContext> for RelativeContext
sourcefn eq(&self, other: &RelativeContext) -> bool
fn eq(&self, other: &RelativeContext) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RelativeContext) -> bool
fn ne(&self, other: &RelativeContext) -> bool
This method tests for !=
.
sourceimpl PartialOrd<RelativeContext> for RelativeContext
impl PartialOrd<RelativeContext> for RelativeContext
sourcefn partial_cmp(&self, other: &RelativeContext) -> Option<Ordering>
fn partial_cmp(&self, other: &RelativeContext) -> 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 RelativeContext
impl StructuralEq for RelativeContext
impl StructuralPartialEq for RelativeContext
Auto Trait Implementations
impl RefUnwindSafe for RelativeContext
impl Send for RelativeContext
impl Sync for RelativeContext
impl Unpin for RelativeContext
impl UnwindSafe for RelativeContext
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