Struct alemat::elements::StrLiteral
source · pub struct StrLiteral { /* private fields */ }
Expand description
ms
element is used to represent “string literals” in expressions meant to be interpreted by
computer algebra systems or other systems containing “programming languages”.
Implementations§
source§impl StrLiteral
impl StrLiteral
sourcepub fn with_attr<I, A>(self, attr: I) -> Self
pub fn with_attr<I, A>(self, attr: I) -> Self
Create a new instance of StrLiteral
with additional attributes.
sourcepub fn content(&self) -> &str
pub fn content(&self) -> &str
Get a reference to the literal content of the StrLiteral
element.
sourcepub fn attributes(&self) -> &[Attribute]
pub fn attributes(&self) -> &[Attribute]
Get a reference to all attributes of the StrLiteral
element.
Trait Implementations§
source§impl Clone for StrLiteral
impl Clone for StrLiteral
source§fn clone(&self) -> StrLiteral
fn clone(&self) -> StrLiteral
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 StrLiteral
impl Debug for StrLiteral
source§impl From<StrLiteral> for Element
impl From<StrLiteral> for Element
source§fn from(value: StrLiteral) -> Self
fn from(value: StrLiteral) -> Self
Converts to this type from the input type.
source§impl<T> From<T> for StrLiteral
impl<T> From<T> for StrLiteral
source§impl IntoElements for StrLiteral
impl IntoElements for StrLiteral
source§fn into_elements(self) -> Elements
fn into_elements(self) -> Elements
Converts the type into elements.
source§impl Ord for StrLiteral
impl Ord for StrLiteral
source§fn cmp(&self, other: &StrLiteral) -> Ordering
fn cmp(&self, other: &StrLiteral) -> 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 StrLiteral
impl PartialEq for StrLiteral
source§fn eq(&self, other: &StrLiteral) -> bool
fn eq(&self, other: &StrLiteral) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StrLiteral
impl PartialOrd for StrLiteral
source§fn partial_cmp(&self, other: &StrLiteral) -> Option<Ordering>
fn partial_cmp(&self, other: &StrLiteral) -> 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 moreimpl Eq for StrLiteral
impl StructuralEq for StrLiteral
impl StructuralPartialEq for StrLiteral
Auto Trait Implementations§
impl RefUnwindSafe for StrLiteral
impl Send for StrLiteral
impl Sync for StrLiteral
impl Unpin for StrLiteral
impl UnwindSafe for StrLiteral
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