pub struct ElementContent {
pub spans: Vec<Span>,
}Expand description
The dynamic, frequently-updated value of an element. Empty (no non-empty span text) ⇒ the element is hidden this frame — the cheap way a producer hides itself without deregistering.
Fields§
§spans: Vec<Span>Styled runs, painted left to right with no separator.
Implementations§
Source§impl ElementContent
impl ElementContent
Sourcepub fn text(text: impl Into<String>, role: ModelineRole) -> Self
pub fn text(text: impl Into<String>, role: ModelineRole) -> Self
Convenience: a single-span content.
Trait Implementations§
Source§impl Clone for ElementContent
impl Clone for ElementContent
Source§fn clone(&self) -> ElementContent
fn clone(&self) -> ElementContent
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 ElementContent
impl Debug for ElementContent
Source§impl Default for ElementContent
impl Default for ElementContent
Source§fn default() -> ElementContent
fn default() -> ElementContent
Returns the “default value” for a type. Read more
impl Eq for ElementContent
Source§impl PartialEq for ElementContent
impl PartialEq for ElementContent
impl StructuralPartialEq for ElementContent
Auto Trait Implementations§
impl Freeze for ElementContent
impl RefUnwindSafe for ElementContent
impl Send for ElementContent
impl Sync for ElementContent
impl Unpin for ElementContent
impl UnsafeUnpin for ElementContent
impl UnwindSafe for ElementContent
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.