pub struct RelativeContext(/* private fields */);
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 duplicate 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 for RelativeContext
impl PartialEq for RelativeContext
Source§impl PartialOrd for RelativeContext
impl PartialOrd for RelativeContext
impl Eq for RelativeContext
impl StructuralPartialEq for RelativeContext
Auto Trait Implementations§
impl Freeze for RelativeContext
impl RefUnwindSafe for RelativeContext
impl Send for RelativeContext
impl Sync for RelativeContext
impl Unpin for RelativeContext
impl UnwindSafe for RelativeContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more