pub struct Chunk {
pub example_name: String,
pub content: Vec<ChunkLine>,
pub part_number: Option<u32>,
pub indentation: Option<u32>,
pub source_name: String,
pub start_line: usize,
pub title: Option<String>,
pub language: Option<String>,
pub id: Option<String>,
}Expand description
This is a raw example chunk - what we extract from the individual source files
Fields§
§example_name: String§content: Vec<ChunkLine>§part_number: Option<u32>§indentation: Option<u32>§source_name: String§start_line: usize§title: Option<String>§language: Option<String>§id: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnwindSafe for Chunk
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