pub struct ReadOnly { /* private fields */ }
Implementations§
Source§impl ReadOnly
impl ReadOnly
pub fn only_token(&self) -> Option<SyntaxToken>
pub fn read_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for ReadOnly
impl AstNode for ReadOnly
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,
Source§impl From<ReadOnly> for TransactionMode
impl From<ReadOnly> for TransactionMode
Source§fn from(node: ReadOnly) -> TransactionMode
fn from(node: ReadOnly) -> TransactionMode
Converts to this type from the input type.
impl Eq for ReadOnly
impl StructuralPartialEq for ReadOnly
Auto Trait Implementations§
impl Freeze for ReadOnly
impl !RefUnwindSafe for ReadOnly
impl !Send for ReadOnly
impl !Sync for ReadOnly
impl Unpin for ReadOnly
impl !UnwindSafe for ReadOnly
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