Enum sv_parser::WhiteSpace
source · pub enum WhiteSpace {
Newline(Box<Locate>),
Space(Box<Locate>),
Comment(Box<Comment>),
CompilerDirective(Box<CompilerDirective>),
}
Variants§
Newline(Box<Locate>)
Space(Box<Locate>)
Comment(Box<Comment>)
CompilerDirective(Box<CompilerDirective>)
Trait Implementations§
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<'a> From<&'a WhiteSpace> for RefNode<'a>
impl<'a> From<&'a WhiteSpace> for RefNode<'a>
source§fn from(x: &'a WhiteSpace) -> RefNode<'a>
fn from(x: &'a WhiteSpace) -> RefNode<'a>
Converts to this type from the input type.
source§impl<'a> From<&'a WhiteSpace> for RefNodes<'a>
impl<'a> From<&'a WhiteSpace> for RefNodes<'a>
source§fn from(x: &'a WhiteSpace) -> RefNodes<'a>
fn from(x: &'a WhiteSpace) -> RefNodes<'a>
Converts to this type from the input type.
source§impl From<WhiteSpace> for AnyNode
impl From<WhiteSpace> for AnyNode
source§fn from(x: WhiteSpace) -> AnyNode
fn from(x: WhiteSpace) -> AnyNode
Converts to this type from the input type.
source§impl<'a> IntoIterator for &'a WhiteSpace
impl<'a> IntoIterator for &'a 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 ==
.source§impl<'a> TryFrom<&'a WhiteSpace> for Locate
impl<'a> TryFrom<&'a WhiteSpace> for Locate
source§impl TryFrom<AnyNode> for WhiteSpace
impl TryFrom<AnyNode> for WhiteSpace
source§impl TryFrom<WhiteSpace> for Locate
impl TryFrom<WhiteSpace> for Locate
impl StructuralPartialEq for WhiteSpace
Auto Trait Implementations§
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