Struct wdl_ast::v1::StringText
source · pub struct StringText(/* private fields */);
Expand description
Represents a textual part of a string.
Trait Implementations§
source§impl AstToken for StringText
impl AstToken for StringText
source§fn can_cast(kind: SyntaxKind) -> boolwhere
Self: Sized,
fn can_cast(kind: SyntaxKind) -> boolwhere
Self: Sized,
Determines if the kind can be cast to this type representation.
source§fn cast(syntax: SyntaxToken) -> Option<Self>where
Self: Sized,
fn cast(syntax: SyntaxToken) -> Option<Self>where
Self: Sized,
Casts the untyped
SyntaxToken
to the typed representation.source§fn syntax(&self) -> &SyntaxToken
fn syntax(&self) -> &SyntaxToken
Gets the untyped
SyntaxToken
of this AST token.source§impl Clone for StringText
impl Clone for StringText
source§fn clone(&self) -> StringText
fn clone(&self) -> StringText
Returns a copy 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 StringText
impl Debug for StringText
source§impl PartialEq for StringText
impl PartialEq for StringText
source§fn eq(&self, other: &StringText) -> bool
fn eq(&self, other: &StringText) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StringText
impl StructuralPartialEq for StringText
Auto Trait Implementations§
impl Freeze for StringText
impl !RefUnwindSafe for StringText
impl !Send for StringText
impl !Sync for StringText
impl Unpin for StringText
impl !UnwindSafe for StringText
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)