pub struct GraphBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> GraphBuilder<'a>
impl<'a> GraphBuilder<'a>
pub fn node(&self) -> GraphNode
pub fn insert(&self) -> bool
pub fn new(graph: &'a mut Graph, id: NodeId) -> GraphBuilder<'a>
pub fn to_parent(&mut self) -> &mut Self
pub fn prev_is_root(&self) -> bool
pub fn set_insert(&mut self, insert: bool) -> &mut Self
pub fn graph(&mut self) -> &mut Graph
pub fn quote(&mut self)
pub fn table( &mut self, header: Vec<LineId>, alignment: Vec<ColumnAlignment>, rows: Vec<Vec<LineId>>, )
pub fn quote_and<F>(&mut self, f: F)where
F: FnOnce(&mut GraphBuilder<'_>),
pub fn table_and<F>(
&mut self,
header: Vec<LineId>,
alignment: Vec<ColumnAlignment>,
rows: Vec<Vec<LineId>>,
f: F,
)where
F: FnOnce(&mut GraphBuilder<'_>),
pub fn horizontal_rule(&mut self)
pub fn bullet_list(&mut self)
pub fn ordered_list(&mut self)
pub fn bullet_list_and<F>(&mut self, f: F)where
F: FnOnce(&mut GraphBuilder<'_>),
pub fn ordered_list_and<F>(&mut self, f: F)where
F: FnOnce(&mut GraphBuilder<'_>),
pub fn section_text(&mut self, text: &str) -> &mut Self
pub fn section_text_and<F>(&mut self, text: &str, f: F) -> &mut Selfwhere
F: FnOnce(&mut GraphBuilder<'_>),
pub fn section(&mut self, inlines: GraphInlines)
pub fn section_and<F>(&mut self, inlines: GraphInlines, f: F)where
F: FnOnce(&mut GraphBuilder<'_>),
pub fn leaf_text(&mut self, text: &str) -> &mut Self
pub fn leaf(&mut self, block: GraphInlines)
pub fn raw(&mut self, block: &str, lang: Option<String>)
pub fn reference(&mut self, key: &Key)
pub fn reference_with_text( &mut self, key: &Key, text: &str, reference_type: ReferenceType, )
pub fn insert_from_iter<'b>(&mut self, iter: impl NodeIter<'b>)
pub fn link_node_id(&mut self, node_id: NodeId)
pub fn id(&self) -> NodeId
pub fn set_id(&mut self, id: NodeId)
Auto Trait Implementations§
impl<'a> Freeze for GraphBuilder<'a>
impl<'a> RefUnwindSafe for GraphBuilder<'a>
impl<'a> Send for GraphBuilder<'a>
impl<'a> Sync for GraphBuilder<'a>
impl<'a> Unpin for GraphBuilder<'a>
impl<'a> !UnwindSafe for GraphBuilder<'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
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