pub struct ChunkOption(/* private fields */);Expand description
A chunk option in an executable code block (e.g., echo=TRUE or fig.cap="text").
Implementations§
Source§impl ChunkOption
impl ChunkOption
Sourcepub fn value(&self) -> Option<String>
pub fn value(&self) -> Option<String>
Get the option value (e.g., “TRUE”, “A nice plot”). Returns None for options without values.
Sourcepub fn value_range(&self) -> Option<TextRange>
pub fn value_range(&self) -> Option<TextRange>
Get the value token range, if present.
Sourcepub fn quote_char(&self) -> Option<char>
pub fn quote_char(&self) -> Option<char>
Get the quote character if the value is quoted.
Trait Implementations§
Source§impl AstNode for ChunkOption
impl AstNode for ChunkOption
type Language = PanacheLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(node: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Source§impl Clone for ChunkOption
impl Clone for ChunkOption
Source§fn clone(&self) -> ChunkOption
fn clone(&self) -> ChunkOption
Returns a duplicate of the value. Read more
1.0.0 · 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 ChunkOption
impl Debug for ChunkOption
Source§impl Hash for ChunkOption
impl Hash for ChunkOption
Source§impl PartialEq for ChunkOption
impl PartialEq for ChunkOption
impl Eq for ChunkOption
impl StructuralPartialEq for ChunkOption
Auto Trait Implementations§
impl Freeze for ChunkOption
impl !RefUnwindSafe for ChunkOption
impl !Send for ChunkOption
impl !Sync for ChunkOption
impl Unpin for ChunkOption
impl UnsafeUnpin for ChunkOption
impl !UnwindSafe for ChunkOption
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