pub struct ExprDiagnosticRange {
pub start: ExprDiagnosticPosition,
pub end: ExprDiagnosticPosition,
}Fields§
§start: ExprDiagnosticPositionThe range’s start position (inclusive)
end: ExprDiagnosticPositionThe range’s end position (exclusive)
Implementations§
Source§impl ExprDiagnosticRange
impl ExprDiagnosticRange
pub fn new( start: ExprDiagnosticPosition, end: ExprDiagnosticPosition, ) -> ExprDiagnosticRange
Trait Implementations§
Source§impl Clone for ExprDiagnosticRange
impl Clone for ExprDiagnosticRange
Source§fn clone(&self) -> ExprDiagnosticRange
fn clone(&self) -> ExprDiagnosticRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExprDiagnosticRange
Source§impl Debug for ExprDiagnosticRange
impl Debug for ExprDiagnosticRange
Source§impl Default for ExprDiagnosticRange
impl Default for ExprDiagnosticRange
Source§fn default() -> ExprDiagnosticRange
fn default() -> ExprDiagnosticRange
Returns the “default value” for a type. Read more
impl Eq for ExprDiagnosticRange
Source§impl PartialEq for ExprDiagnosticRange
impl PartialEq for ExprDiagnosticRange
Source§fn eq(&self, other: &ExprDiagnosticRange) -> bool
fn eq(&self, other: &ExprDiagnosticRange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExprDiagnosticRange
Auto Trait Implementations§
impl Freeze for ExprDiagnosticRange
impl RefUnwindSafe for ExprDiagnosticRange
impl Send for ExprDiagnosticRange
impl Sync for ExprDiagnosticRange
impl Unpin for ExprDiagnosticRange
impl UnsafeUnpin for ExprDiagnosticRange
impl UnwindSafe for ExprDiagnosticRange
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