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,
}Expand description
Struct to configure how the FST should be drawn.
Fields§
§vertical: boolDraw bottom-to-top instead of left-to-right.
size: Option<(f32, f32)>Set pair (width, height)
title: StringSet figure title.
portrait: boolPortrait 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: u32Set fontsize.
acceptor: boolInput in acceptor format.
show_weight_one: boolPrint/draw transition weights and final weights equal to Weight::ONE.
print_weight: boolPrint/draw transition weights and final weights.
Trait Implementations§
Source§impl Clone for DrawingConfig
impl Clone for DrawingConfig
Source§fn clone(&self) -> DrawingConfig
fn clone(&self) -> DrawingConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 DrawingConfig
impl Debug for DrawingConfig
Source§impl Default for DrawingConfig
impl Default for DrawingConfig
Source§impl PartialEq for DrawingConfig
impl PartialEq for DrawingConfig
impl StructuralPartialEq for DrawingConfig
Auto Trait Implementations§
impl Freeze for DrawingConfig
impl RefUnwindSafe for DrawingConfig
impl Send for DrawingConfig
impl Sync for DrawingConfig
impl Unpin for DrawingConfig
impl UnwindSafe for DrawingConfig
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more