pub struct AbstractString {
pub parts: Vec<StringPart>,
pub suppressed: bool,
}Expand description
A scalar modeled as ordered parts: literal text runs, whole-value
splices, and opaque taint. Within one arm the parts list is the ordered
set of contributions to the rendered text: alternation inside a single
hole (a Choice value) degrades to multiple parts, which projections
treat identically (every contribution attributes at the scalar’s
position).
Fields§
§parts: Vec<StringPart>The scalar parts in render order.
suppressed: boolThe scalar is a render-suppressed text blob (a block scalar body): contained splices influence its text but are not sink-typed at the scalar’s document position, so projections keep them pathless.
Implementations§
Trait Implementations§
Source§impl Clone for AbstractString
impl Clone for AbstractString
Source§fn clone(&self) -> AbstractString
fn clone(&self) -> AbstractString
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AbstractString
impl Debug for AbstractString
Source§impl Default for AbstractString
impl Default for AbstractString
Source§fn default() -> AbstractString
fn default() -> AbstractString
Returns the “default value” for a type. Read more
impl Eq for AbstractString
Source§impl PartialEq for AbstractString
impl PartialEq for AbstractString
impl StructuralPartialEq for AbstractString
Auto Trait Implementations§
impl !Send for AbstractString
impl !Sync for AbstractString
impl Freeze for AbstractString
impl RefUnwindSafe for AbstractString
impl Unpin for AbstractString
impl UnsafeUnpin for AbstractString
impl UnwindSafe for AbstractString
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.