[][src]Struct rustfst::DrawingConfig

pub struct DrawingConfig {
    pub vertical: bool,
    pub size: Option<(f32, f32)>,
    pub title: String,
    pub portrait: bool,
    pub ranksep: Option<f32>,
    pub nodesep: Option<f32>,
    pub fontsize: u32,
    pub acceptor: bool,
    pub show_weight_one: bool,
    pub print_weight: bool,
}

Struct to configure how the FST should be drawn.

Fields

vertical: bool

Draw bottom-to-top instead of left-to-right.

size: Option<(f32, f32)>

Set pair (width, height)

title: String

Set figure title.

portrait: bool

Portrait mode (def: landscape).

ranksep: Option<f32>

Set minimum separation between ranks (see dot documentation).

nodesep: Option<f32>

Set minimum separation between nodes (see dot documentation).

fontsize: u32

Set fontsize.

acceptor: bool

Input in acceptor format.

show_weight_one: bool

Print/draw transition weights and final weights equal to Weight::ONE.

print_weight: bool

Print/draw transition weights and final weights.

Trait Implementations

impl Clone for DrawingConfig[src]

impl Debug for DrawingConfig[src]

impl Default for DrawingConfig[src]

impl PartialEq<DrawingConfig> for DrawingConfig[src]

impl StructuralPartialEq for DrawingConfig[src]

Auto Trait Implementations

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> Same<T> for T[src]

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.