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 hashpipe_chunk_options(&self) -> Vec<ChunkOption>
pub fn inline_chunk_options(&self) -> Vec<ChunkOption>
pub fn inline_chunk_option_entries(&self) -> Vec<ChunkOptionEntry>
pub fn hashpipe_chunk_option_entries(&self) -> Vec<ChunkOptionEntry>
pub fn merged_chunk_option_entries(&self) -> Vec<ChunkOptionEntry>
pub fn chunk_options(&self) -> Vec<ChunkOption>
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 Freeze for CodeBlock
impl !RefUnwindSafe for CodeBlock
impl !Send for CodeBlock
impl !Sync for CodeBlock
impl Unpin for CodeBlock
impl UnsafeUnpin for CodeBlock
impl !UnwindSafe 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