pub struct RichBlockPreformatted {
pub text: RichText,
pub language: Option<String>,
}Expand description
A preformatted text block (<pre><code>).
Fields§
§text: RichTextThe preformatted text.
language: Option<String>Optional syntax-highlight language identifier.
Trait Implementations§
Source§impl Clone for RichBlockPreformatted
impl Clone for RichBlockPreformatted
Source§fn clone(&self) -> RichBlockPreformatted
fn clone(&self) -> RichBlockPreformatted
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RichBlockPreformatted
impl Debug for RichBlockPreformatted
Source§impl<'de> Deserialize<'de> for RichBlockPreformatted
impl<'de> Deserialize<'de> for RichBlockPreformatted
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RichBlockPreformatted
impl RefUnwindSafe for RichBlockPreformatted
impl Send for RichBlockPreformatted
impl Sync for RichBlockPreformatted
impl Unpin for RichBlockPreformatted
impl UnsafeUnpin for RichBlockPreformatted
impl UnwindSafe for RichBlockPreformatted
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