pub struct SpannedMathString {
pub string: MathString,
pub span: Span,
}
Expand description
A MathString
with a Span
.
Fields§
§string: MathString
§span: Span
Implementations§
Source§impl SpannedMathString
impl SpannedMathString
Sourcepub fn displayed_by_default(&self) -> Option<Self>
pub fn displayed_by_default(&self) -> Option<Self>
Return Some
with self
if the string should be displayed by default.
A string should be displayed by default if it consists of one alphabetical
(either special or literal) and is possibly followed by primes (’) and an index
of any length.
§Panics
Any panic here is a bug.
pub fn is_empty(&self) -> bool
pub fn get_span(&self) -> Span
Trait Implementations§
Source§impl Clone for SpannedMathString
impl Clone for SpannedMathString
Source§fn clone(&self) -> SpannedMathString
fn clone(&self) -> SpannedMathString
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 SpannedMathString
impl Debug for SpannedMathString
Source§impl Display for SpannedMathString
impl Display for SpannedMathString
Source§impl From<PointCollectionItem> for SpannedMathString
impl From<PointCollectionItem> for SpannedMathString
Source§fn from(value: PointCollectionItem) -> Self
fn from(value: PointCollectionItem) -> Self
Converts to this type from the input type.
Source§impl FromProperty for SpannedMathString
impl FromProperty for SpannedMathString
Source§fn from_property(property: PropertyValue) -> Result<Self, Error>
fn from_property(property: PropertyValue) -> Result<Self, Error>
Try to convert the property value into
Self
. Read moreAuto Trait Implementations§
impl Freeze for SpannedMathString
impl RefUnwindSafe for SpannedMathString
impl Send for SpannedMathString
impl Sync for SpannedMathString
impl Unpin for SpannedMathString
impl UnwindSafe for SpannedMathString
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneWithNode for Twhere
T: Clone,
impl<T> CloneWithNode for Twhere
T: Clone,
Source§fn clone_with_node(&mut self) -> T
fn clone_with_node(&mut self) -> T
Clone
self
and take its node.Source§fn clone_without_node(&self) -> T
fn clone_without_node(&self) -> T
Clone
self
without taking its node.Source§impl<T> Convert for T
impl<T> Convert for T
Source§fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
Convert
self
into a specific type. Read moreSource§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Check if
self
can be converted into a specific type. Read more