pub struct SimpleNode<'a>(pub &'a str);Expand description
The classic [label] node as an explicit object — identical to
passing the &str itself.
Tuple Fields§
§0: &'a strTrait Implementations§
Source§impl<'a> Clone for SimpleNode<'a>
impl<'a> Clone for SimpleNode<'a>
Source§fn clone(&self) -> SimpleNode<'a>
fn clone(&self) -> SimpleNode<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SimpleNode<'a>
Source§impl<'a> Debug for SimpleNode<'a>
impl<'a> Debug for SimpleNode<'a>
Source§impl<'a> NodeContent<'a> for SimpleNode<'a>
impl<'a> NodeContent<'a> for SimpleNode<'a>
Source§fn size(&self) -> (usize, usize)
fn size(&self) -> (usize, usize)
Reserved
(width, height) in cells/rows. Layout routes edges
around this area; the painter fills it.Source§fn painter(&self) -> Option<NodePaintFn>
fn painter(&self) -> Option<NodePaintFn>
The template fn that fills the reserved area, if any.
Source§fn payload(&self) -> &'a str
fn payload(&self) -> &'a str
Data for the painter: travels like a second label, delivered
via
NodePaintCtx at paint time
and exported to JSON as "payload" on custom nodes.Auto Trait Implementations§
impl<'a> Freeze for SimpleNode<'a>
impl<'a> RefUnwindSafe for SimpleNode<'a>
impl<'a> Send for SimpleNode<'a>
impl<'a> Sync for SimpleNode<'a>
impl<'a> Unpin for SimpleNode<'a>
impl<'a> UnsafeUnpin for SimpleNode<'a>
impl<'a> UnwindSafe for SimpleNode<'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