pub struct CodeBlock<'input> { /* private fields */ }Implementations§
Source§impl<'input> CodeBlock<'input>
 
impl<'input> CodeBlock<'input>
pub fn new( children: Children<'input>, span: &'input str, language: Option<&'input str>, ) -> Self
pub fn as_span(&self) -> &str
pub fn children(&self) -> &Children<'_>
pub fn children_mut(&'input mut self) -> &mut Children<'_>
pub fn language(&self) -> Option<&'input str>
Trait Implementations§
impl<'input> StructuralPartialEq for CodeBlock<'input>
Auto Trait Implementations§
impl<'input> Freeze for CodeBlock<'input>
impl<'input> RefUnwindSafe for CodeBlock<'input>
impl<'input> Send for CodeBlock<'input>
impl<'input> Sync for CodeBlock<'input>
impl<'input> Unpin for CodeBlock<'input>
impl<'input> UnwindSafe for CodeBlock<'input>
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