pub struct CommentSyntax {
pub line: Option<String>,
pub block: Option<(String, String)>,
}Expand description
N.1.6 (2026-06-10): per-buffer comment-leader descriptor for the
comment text objects (aC / iC). Commentstring-driven (NOT
tree-sitter) so it works for any language with a known leader, even
without a parse tree. The host populates it from the active buffer’s
language (Lang::comment_syntax); None (or line: None) means the
comment objects resolve nothing (graceful operator no-op).
Fields§
§line: Option<String>Line-comment leader, e.g. "//" (rust / js) or "#" (python).
block: Option<(String, String)>Block-comment delimiters, e.g. ("/*", "*/"). Reserved for a
follow-up; v1 comment objects use line only.
Trait Implementations§
Source§impl Clone for CommentSyntax
impl Clone for CommentSyntax
Source§fn clone(&self) -> CommentSyntax
fn clone(&self) -> CommentSyntax
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 CommentSyntax
impl Debug for CommentSyntax
Source§impl Default for CommentSyntax
impl Default for CommentSyntax
Source§fn default() -> CommentSyntax
fn default() -> CommentSyntax
Returns the “default value” for a type. Read more
impl Eq for CommentSyntax
Source§impl PartialEq for CommentSyntax
impl PartialEq for CommentSyntax
impl StructuralPartialEq for CommentSyntax
Auto Trait Implementations§
impl Freeze for CommentSyntax
impl RefUnwindSafe for CommentSyntax
impl Send for CommentSyntax
impl Sync for CommentSyntax
impl Unpin for CommentSyntax
impl UnsafeUnpin for CommentSyntax
impl UnwindSafe for CommentSyntax
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.