pub struct CodeBlock(/* private fields */);Implementations§
Source§impl CodeBlock
impl CodeBlock
pub fn info(&self) -> Option<CodeInfo>
pub fn language(&self) -> Option<String>
pub fn content_text(&self) -> String
pub fn content_range(&self) -> Option<TextRange>
pub fn is_executable_chunk(&self) -> bool
pub fn is_display_code_block(&self) -> bool
pub fn hashpipe_yaml_preamble(&self) -> Option<HashpipeYamlPreamble>
pub fn inline_chunk_option_entries(&self) -> Vec<ChunkOptionEntry>
Sourcepub fn hashpipe_chunk_option_entries(&self) -> Vec<ChunkOptionEntry>
pub fn hashpipe_chunk_option_entries(&self) -> Vec<ChunkOptionEntry>
Chunk options from the embedded hashpipe YAML block map. The preamble’s
HASHPIPE_YAML_CONTENT carries a spliced YAML document (host-aligned
ranges), so each top-level key: value entry becomes one option:
cooked value, host-range spans, and a quoted flag from the scalar
style. Non-scalar values (e.g. a fig-subcap: sequence) yield an entry
with no value, matching the legacy option-line behavior.
pub fn merged_chunk_option_entries(&self) -> Vec<ChunkOptionEntry>
pub fn inline_chunk_options_node(&self) -> Option<ChunkOptions>
pub fn chunk_label_entries(&self) -> Vec<ChunkLabelEntry>
pub fn chunk_labels(&self) -> Vec<String>
pub fn has_chunk_option_key_with_nonempty_value(&self, key_name: &str) -> bool
pub fn has_chunk_label(&self) -> bool
Trait Implementations§
Source§impl AstNode for CodeBlock
impl AstNode for CodeBlock
type Language = PanacheLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Auto Trait Implementations§
impl !RefUnwindSafe for CodeBlock
impl !Send for CodeBlock
impl !Sync for CodeBlock
impl !UnwindSafe for CodeBlock
impl Freeze for CodeBlock
impl Unpin for CodeBlock
impl UnsafeUnpin for CodeBlock
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