Struct ftd::code::Code [−][src]
pub struct Code { pub caption: Rendered, pub lang: String, pub break_lines: bool, pub show_line_numbers: ShowLineNumbers, pub show_invisibles: bool, pub show_tabs: bool, pub tab_size: u8, pub pointers: HashMap<String, Rendered>, pub show: Vec<i32>, pub full: Option<String>, pub highlights: Vec<Highlight>, pub code: Rendered, }
Fields
lang: String
break_lines: bool
show_line_numbers: ShowLineNumbers
show_invisibles: bool
show_tabs: bool
tab_size: u8
pointers: HashMap<String, Rendered>
show: Vec<i32>
full: Option<String>
highlights: Vec<Highlight>
code: Rendered
Implementations
impl Code
[src]
impl Code
[src]pub fn to_p1(&self) -> Section
[src]
pub fn from_p1(p1: &Section) -> Result<Self, ParseError>
[src]
pub fn with_caption(self, caption: &str) -> Self
[src]
pub fn with_code(self, code: &str) -> Self
[src]
pub fn with_lang(self, lang: &str) -> Self
[src]
pub fn with_break_lines(self, v: bool) -> Self
[src]
pub fn with_tab_size(self, tab_size: u8) -> Self
[src]
pub fn with_show_tabs(self, v: bool) -> Self
[src]
pub fn with_show_invisibles(self, v: bool) -> Self
[src]
pub fn with_full(self, v: &str) -> Self
[src]
pub fn with_show_line_numbers(self, v: ShowLineNumbers) -> Self
[src]
Trait Implementations
impl StructuralPartialEq for Code
[src]
impl StructuralPartialEq for Code
[src]Auto Trait Implementations
impl RefUnwindSafe for Code
impl RefUnwindSafe for Code
impl UnwindSafe for Code
impl UnwindSafe for Code
Blanket Implementations
impl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,