[][src]Struct termimad::FmtComposite

pub struct FmtComposite<'s> {
    pub composite: Composite<'s>,
    pub visible_length: usize,
    pub spacing: Option<Spacing>,
}

Wrap a Minimad Composite, which is a list of Compounds (which are strings with an homogeneous style)

Fields

composite: Composite<'s>visible_length: usizespacing: Option<Spacing>

Methods

impl<'s> FmtComposite<'s>[src]

pub fn new() -> Self[src]

pub fn from(composite: Composite<'s>, skin: &MadSkin) -> Self[src]

pub fn completions(&self) -> (usize, usize)[src]

Return the number of characters (usually spaces) to insert both sides of the composite

pub fn add_compound(&mut self, compound: Compound<'s>)[src]

Add a compound and modifies visible_length accordingly

Trait Implementations

impl<'s> Clone for FmtComposite<'s>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'s> Debug for FmtComposite<'s>[src]

Auto Trait Implementations

impl<'s> Sync for FmtComposite<'s>

impl<'s> Send for FmtComposite<'s>

impl<'s> Unpin for FmtComposite<'s>

impl<'s> RefUnwindSafe for FmtComposite<'s>

impl<'s> UnwindSafe for FmtComposite<'s>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]