pub struct Block {
pub lang: String,
pub tags: Vec<String>,
pub body: String,
pub line: usize,
}Expand description
A fenced block of the guide.
Fields§
§lang: StringThe language: the first word of the info string (sh, json).
The tags after it (test, mcp, model).
body: StringThe block’s text, without the fences.
line: usizeThe 1-based line of the opening fence in SOURCE.
Implementations§
Trait Implementations§
impl Eq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Forget for Block
impl Freeze for Block
impl Move for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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