Struct rnix::ast::StrContent
source · pub struct StrContent(/* private fields */);
Trait Implementations§
source§impl AstToken for StrContent
impl AstToken for StrContent
fn can_cast(kind: SyntaxKind) -> bool
source§fn cast(from: SyntaxToken) -> Option<Self>
fn cast(from: SyntaxToken) -> Option<Self>
Cast an untyped token into this strongly-typed token. This will return
None if the type was not correct.
fn syntax(&self) -> &SyntaxToken
source§impl Clone for StrContent
impl Clone for StrContent
source§fn clone(&self) -> StrContent
fn clone(&self) -> StrContent
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 StrContent
impl Debug for StrContent
source§impl Display for StrContent
impl Display for StrContent
source§impl Hash for StrContent
impl Hash for StrContent
source§impl PartialEq for StrContent
impl PartialEq for StrContent
impl Eq for StrContent
impl StructuralPartialEq for StrContent
Auto Trait Implementations§
impl Freeze for StrContent
impl !RefUnwindSafe for StrContent
impl !Send for StrContent
impl !Sync for StrContent
impl Unpin for StrContent
impl !UnwindSafe for StrContent
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)