pub struct ValueLine(/* private fields */);Implementations§
Source§impl ValueLine
impl ValueLine
Sourcepub fn indent(&self) -> Option<SyntaxToken>
pub fn indent(&self) -> Option<SyntaxToken>
The line’s leading whitespace — a continuation’s indent, or the space after the colon on a field’s own line. The formatter’s re-indent handle.
Sourcepub fn content(&self) -> Option<SyntaxToken>
pub fn content(&self) -> Option<SyntaxToken>
The line’s content run, absent on a line that is only whitespace.
Sourcepub fn trimmed_text(&self) -> String
pub fn trimmed_text(&self) -> String
The line’s content, trimmed — the unit Field::folded_value joins.
Sourcepub fn content_range(&self) -> TextRange
pub fn content_range(&self) -> TextRange
The content run’s source range, collapsed to the line’s start when the line has no content.
Trait Implementations§
Source§impl AstNode for ValueLine
impl AstNode for ValueLine
type Language = DcfLanguage
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 ValueLine
impl StructuralPartialEq for ValueLine
Auto Trait Implementations§
impl !RefUnwindSafe for ValueLine
impl !Send for ValueLine
impl !Sync for ValueLine
impl !UnwindSafe for ValueLine
impl Freeze for ValueLine
impl Unpin for ValueLine
impl UnsafeUnpin for ValueLine
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