[][src]Struct exemplify_lib::layers::domain::entities::chunk::Chunk

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>,
}

This is a raw example chunk - what we extract from the individual source files

Fields

example_name: Stringcontent: Vec<ChunkLine>part_number: Option<u32>indentation: Option<u32>source_name: Stringstart_line: usizetitle: Option<String>language: Option<String>

Trait Implementations

impl Clone for Chunk[src]

impl Default for Chunk[src]

Auto Trait Implementations

impl RefUnwindSafe for Chunk

impl Send for Chunk

impl Sync for Chunk

impl Unpin for Chunk

impl UnwindSafe for Chunk

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.