Struct dusk_dire::source_info::SourceRange
source · [−]Fields
start: usize
end: usize
Implementations
sourceimpl SourceRange
impl SourceRange
pub fn from_single_char(index: usize) -> Self
pub fn contains(&self, pos: usize) -> bool
pub fn first_char_only(&self) -> Self
Trait Implementations
sourceimpl Add<SourceRange> for SourceRange
impl Add<SourceRange> for SourceRange
type Output = SourceRange
type Output = SourceRange
The resulting type after applying the +
operator.
sourcefn add(self, rhs: SourceRange) -> Self::Output
fn add(self, rhs: SourceRange) -> Self::Output
Performs the +
operation. Read more
sourceimpl Clone for SourceRange
impl Clone for SourceRange
sourcefn clone(&self) -> SourceRange
fn clone(&self) -> SourceRange
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SourceRange
impl Debug for SourceRange
sourceimpl Default for SourceRange
impl Default for SourceRange
sourceimpl PartialEq<SourceRange> for SourceRange
impl PartialEq<SourceRange> for SourceRange
sourcefn eq(&self, other: &SourceRange) -> bool
fn eq(&self, other: &SourceRange) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SourceRange) -> bool
fn ne(&self, other: &SourceRange) -> bool
This method tests for !=
.
impl Copy for SourceRange
impl Eq for SourceRange
impl StructuralEq for SourceRange
impl StructuralPartialEq for SourceRange
Auto Trait Implementations
impl RefUnwindSafe for SourceRange
impl Send for SourceRange
impl Sync for SourceRange
impl Unpin for SourceRange
impl UnwindSafe for SourceRange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more