Struct yash_syntax::source::SourceChar
source · pub struct SourceChar {
pub value: char,
pub location: Location,
}
Expand description
Character with source description.
Fields§
§value: char
Character value.
location: Location
Location of this character in source code.
Trait Implementations§
source§impl Clone for SourceChar
impl Clone for SourceChar
source§fn clone(&self) -> SourceChar
fn clone(&self) -> SourceChar
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 SourceChar
impl Debug for SourceChar
source§impl PartialEq for SourceChar
impl PartialEq for SourceChar
source§fn eq(&self, other: &SourceChar) -> bool
fn eq(&self, other: &SourceChar) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SourceChar
impl StructuralEq for SourceChar
impl StructuralPartialEq for SourceChar
Auto Trait Implementations§
impl !RefUnwindSafe for SourceChar
impl !Send for SourceChar
impl !Sync for SourceChar
impl Unpin for SourceChar
impl !UnwindSafe for SourceChar
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