pub struct AssembledFigure<'a> { /* private fields */ }
Expand description

A Figure that has been assembled with the Figure::assemble or Figure::assemble_with_options methods.

An assembled figure contains all the information necessary to perform rendering.

Implementations§

source§

impl<'a> AssembledFigure<'a>

source

pub fn write_svg(&self, writer: &mut impl Write) -> Result<()>

Render a AssembledFigure into a writer.

source

pub fn write_svg_with_options( &self, writer: &mut impl Write, options: &RenderOptions ) -> Result<()>

Render a AssembledFigure into a writer with a set of options.

source§

impl<'a> AssembledFigure<'a>

source

pub fn num_cycles(&self) -> u32

Returns the maximum cycle width over all lines.

source

pub fn horizontal_scale(&self) -> u16

Returns the scaling factor for the horizontal axis.

source

pub fn has_undefined(&self) -> bool

Returns whether the AssembledFigure contains any CycleState::X

source

pub fn has_gaps(&self) -> bool

Returns whether the AssembledFigure contains any CycleState::Gap

source

pub fn has_posedge_marker(&self) -> bool

Returns whether the AssembledFigure contains any CycleState::PosedgeClockMarked

source

pub fn has_negedge_marker(&self) -> bool

Returns whether the AssembledFigure contains any CycleState::NegedgeClockMarked

source

pub fn has_group_label_at_depth(&self, depth: u32) -> bool

Returns the whether there is a label at group nesting level depth.

source

pub fn group_nesting(&self) -> u32

Returns the maximum depth of the group nesting.

source

pub fn lines(&self) -> &[AssembledLine<'a>]

Returns the lines that the AssembledFigure contains

source

pub fn group_markers(&self) -> &[GroupMarker<'a>]

Returns the markers for the group nestings

source

pub fn header_text(&self) -> Option<&'a str>

Returns a potential header text of the AssembledFigure

source

pub fn footer_text(&self) -> Option<&'a str>

Returns a potential footer text of the AssembledFigure

source

pub fn top_cycle_marker(&self) -> Option<CycleEnumerationMarker>

Returns a CycleEnumerationMarker above the signals of the AssembledFigure

source

pub fn bottom_cycle_marker(&self) -> Option<CycleEnumerationMarker>

Returns a CycleEnumerationMarker below the signals of the AssembledFigure

Trait Implementations§

source§

impl<'a> Debug for AssembledFigure<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AssembledFigure<'a>

§

impl<'a> Send for AssembledFigure<'a>

§

impl<'a> Sync for AssembledFigure<'a>

§

impl<'a> Unpin for AssembledFigure<'a>

§

impl<'a> UnwindSafe for AssembledFigure<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.