pub struct GraphRenderer { /* private fields */ }Implementations§
Source§impl GraphRenderer
impl GraphRenderer
pub fn new(config: RenderConfig) -> Self
pub fn config(&self) -> &RenderConfig
pub fn reset(&mut self)
pub fn rendered(&self) -> &str
pub fn render_if_changed<T>(&mut self, nodes: &[T]) -> bool
pub fn render_to_string(&mut self, nodes: &[Node]) -> String
pub fn render_plan_into(&self, plan: &RowPlan<'_, Node>, output: &mut String)
Trait Implementations§
Source§impl Clone for GraphRenderer
impl Clone for GraphRenderer
Source§fn clone(&self) -> GraphRenderer
fn clone(&self) -> GraphRenderer
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 GraphRenderer
impl Debug for GraphRenderer
Auto Trait Implementations§
impl Freeze for GraphRenderer
impl RefUnwindSafe for GraphRenderer
impl Send for GraphRenderer
impl Sync for GraphRenderer
impl Unpin for GraphRenderer
impl UnsafeUnpin for GraphRenderer
impl UnwindSafe for GraphRenderer
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