[][src]Struct mksvg::text::Text

pub struct Text<C: CDNum> { /* fields omitted */ }

Implementations

impl<C: CDNum> Text<C>[src]

pub fn new<S: AsRef<str>>(s: S, x: C, y: C, lh: C) -> Self[src]

pub fn lines<I, S>(it: I, x: C, y: C, lh: C) -> Self where
    I: IntoIterator<Item = S>,
    S: AsRef<str>, 
[src]

pub fn wrap(self, n: usize) -> Self[src]

pub fn v_center(self) -> Self[src]

pub fn v_base(self) -> Self[src]

pub fn bg<S: AsRef<str>>(self, sw: C, col: S) -> Self[src]

pub fn write<E, S: SvgWrite<Err = E>>(&self, s: &mut S) -> Result<(), E>[src]

Trait Implementations

impl<C: Clone + CDNum> Clone for Text<C>[src]

impl<C: Debug + CDNum> Debug for Text<C>[src]

impl<C: CDNum> Display for Text<C>[src]

impl<C: PartialEq + CDNum> PartialEq<Text<C>> for Text<C>[src]

impl<C: CDNum> StructuralPartialEq for Text<C>[src]

impl<C: CDNum + Debug> SvgArg for Text<C>[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for Text<C> where
    C: RefUnwindSafe

impl<C> Send for Text<C> where
    C: Send

impl<C> Sync for Text<C> where
    C: Sync

impl<C> Unpin for Text<C> where
    C: Unpin

impl<C> UnwindSafe for Text<C> where
    C: UnwindSafe

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.