pub struct Builder { /* private fields */ }
Expand description
Build a gemini document up from a series of nodes.
Implementations§
Source§impl Builder
impl Builder
pub fn new() -> Builder
pub fn text<T: Into<String>>(self, data: T) -> Builder
pub fn link<T: Into<String>>(self, to: T, name: Option<String>) -> Builder
pub fn preformatted<T: Into<String>>(self, data: T) -> Builder
pub fn heading<T: Into<String>>(self, level: u8, body: T) -> Builder
pub fn list_item<T: Into<String>>(self, item: T) -> Builder
pub fn quote<T: Into<String>>(self, body: T) -> Builder
pub fn build(self) -> Vec<Node>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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