pub struct SpannedMathString {
pub string: MathString,
pub span: Span,
}Expand description
A MathString with a Span.
Fields§
§string: MathString§span: SpanImplementations§
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 copy of the value. Read more
1.6.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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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