pub struct Template<'a>(/* private fields */);Expand description
Templating system for node and edge labels and tooltips.
This implements the Templating trait to be used in conjunction with Option<NodeColoringValues>.
Implementations§
Source§impl<'a> Template<'a>
impl<'a> Template<'a>
Sourcepub fn new(template_options: &'a TemplateOptions) -> Result<Self, TemplateError>
pub fn new(template_options: &'a TemplateOptions) -> Result<Self, TemplateError>
Create a new Template from the given TemplateOptions.
§Defaults
If a template option field is None, its corresponding default is used:
- Node label:
"{short}" - Node tooltip:
"{full}\n{size_binary}\n{features}" - Edge label:
"{features}" - Edge tooltip:
"{source} -> {target}"
Trait Implementations§
Source§impl<'a> Templating for Template<'a>
impl<'a> Templating for Template<'a>
Auto Trait Implementations§
impl<'a> Freeze for Template<'a>
impl<'a> !RefUnwindSafe for Template<'a>
impl<'a> !Send for Template<'a>
impl<'a> !Sync for Template<'a>
impl<'a> Unpin for Template<'a>
impl<'a> !UnwindSafe for Template<'a>
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