Struct debris_llir::json_format::FormattedText
source · pub struct FormattedText {
pub components: Vec<JsonFormatComponent>,
}
Expand description
Debris syntax:
normal text $variable other text $other_variable, end after non-ident char \& 4escaped ampersand
Fields§
§components: Vec<JsonFormatComponent>
Trait Implementations§
source§impl Clone for FormattedText
impl Clone for FormattedText
source§fn clone(&self) -> FormattedText
fn clone(&self) -> FormattedText
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 FormattedText
impl Debug for FormattedText
source§impl Display for FormattedText
impl Display for FormattedText
source§impl From<Vec<JsonFormatComponent>> for FormattedText
impl From<Vec<JsonFormatComponent>> for FormattedText
source§fn from(value: Vec<JsonFormatComponent>) -> Self
fn from(value: Vec<JsonFormatComponent>) -> Self
Converts to this type from the input type.
source§impl PartialEq for FormattedText
impl PartialEq for FormattedText
source§fn eq(&self, other: &FormattedText) -> bool
fn eq(&self, other: &FormattedText) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FormattedText
impl StructuralEq for FormattedText
impl StructuralPartialEq for FormattedText
Auto Trait Implementations§
impl RefUnwindSafe for FormattedText
impl !Send for FormattedText
impl !Sync for FormattedText
impl Unpin for FormattedText
impl UnwindSafe for FormattedText
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.