Struct rnix::ast::Whitespace
source · pub struct Whitespace(/* private fields */);
Trait Implementations§
source§impl AstToken for Whitespace
impl AstToken for Whitespace
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 Whitespace
impl Clone for Whitespace
source§fn clone(&self) -> Whitespace
fn clone(&self) -> Whitespace
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 Whitespace
impl Debug for Whitespace
source§impl Display for Whitespace
impl Display for Whitespace
source§impl Hash for Whitespace
impl Hash for Whitespace
source§impl PartialEq for Whitespace
impl PartialEq for Whitespace
source§fn eq(&self, other: &Whitespace) -> bool
fn eq(&self, other: &Whitespace) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Whitespace
impl StructuralPartialEq for Whitespace
Auto Trait Implementations§
impl Freeze for Whitespace
impl !RefUnwindSafe for Whitespace
impl !Send for Whitespace
impl !Sync for Whitespace
impl Unpin for Whitespace
impl !UnwindSafe for Whitespace
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
)