pub struct InlineComputation {
pub code: String,
pub language: Option<String>,
pub fenced: bool,
}Expand description
A computation held in the body under # Computation.
Fields§
§code: StringThe code, dedented, without the fence or indent.
language: Option<String>The fence info string (sql, python, …), when the block is fenced and
carries one.
fenced: booltrue for a ```/~~~ fenced block, false for an indented
one. The spec’s prose says “fenced”; its own examples are indented, so
both are read.
Trait Implementations§
Source§impl Clone for InlineComputation
impl Clone for InlineComputation
Source§fn clone(&self) -> InlineComputation
fn clone(&self) -> InlineComputation
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 InlineComputation
impl Debug for InlineComputation
impl Eq for InlineComputation
Source§impl PartialEq for InlineComputation
impl PartialEq for InlineComputation
impl StructuralPartialEq for InlineComputation
Auto Trait Implementations§
impl Freeze for InlineComputation
impl RefUnwindSafe for InlineComputation
impl Send for InlineComputation
impl Sync for InlineComputation
impl Unpin for InlineComputation
impl UnsafeUnpin for InlineComputation
impl UnwindSafe for InlineComputation
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