Struct wolfram_expr::symbol::RelativeContext
source · pub struct RelativeContext(_);Expand description
Context begining with a `.
Implementations§
source§impl 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§
source§impl Clone for RelativeContext
impl Clone for RelativeContext
source§fn clone(&self) -> RelativeContext
fn clone(&self) -> RelativeContext
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 RelativeContext
impl Debug for RelativeContext
source§impl Display for RelativeContext
impl Display for RelativeContext
source§impl Hash for RelativeContext
impl Hash for RelativeContext
source§impl Ord for RelativeContext
impl Ord for RelativeContext
source§fn cmp(&self, other: &RelativeContext) -> Ordering
fn cmp(&self, other: &RelativeContext) -> 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<RelativeContext> for RelativeContext
impl PartialEq<RelativeContext> for RelativeContext
source§fn eq(&self, other: &RelativeContext) -> bool
fn eq(&self, other: &RelativeContext) -> bool
source§impl PartialOrd<RelativeContext> for RelativeContext
impl PartialOrd<RelativeContext> for RelativeContext
source§fn partial_cmp(&self, other: &RelativeContext) -> Option<Ordering>
fn partial_cmp(&self, other: &RelativeContext) -> 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