pub struct CodeBlock(/* private fields */);Implementations§
Source§impl CodeBlock
impl CodeBlock
Sourcepub fn content(&self) -> String
pub fn content(&self) -> String
Return the code body using Julia Markdown’s trailing-newline chomp.
Sourcepub fn content_range(&self) -> Option<TextRange>
pub fn content_range(&self) -> Option<TextRange>
Return the decoded-text range covering the code body.
In a container, the range includes its prefixes on continuation
lines. Individual CODE_CONTENT tokens exclude those prefixes and
preserve exact ranges for consumers of Self::content.
Sourcepub fn fence_kind(&self) -> FenceKind
pub fn fence_kind(&self) -> FenceKind
Classify ordinary Julia and Documenter fence info strings locally.
Trait Implementations§
Source§impl AstNode for CodeBlock
impl AstNode for CodeBlock
type Language = DocumentationLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
impl Eq for CodeBlock
impl StructuralPartialEq for CodeBlock
Auto Trait Implementations§
impl !RefUnwindSafe for CodeBlock
impl !Send for CodeBlock
impl !Sync for CodeBlock
impl !UnwindSafe for CodeBlock
impl Forget for CodeBlock
impl Freeze for CodeBlock
impl Move 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