#[repr(C)]pub struct ErrorLocationRange {
pub start: ErrorLocation,
pub end: ErrorLocation,
}Expand description
FFI-safe replacement for (ErrorLocation, ErrorLocation) tuple.
Represents a range (start..end) in the source text.
Fields§
§start: ErrorLocation§end: ErrorLocationTrait Implementations§
Source§impl Clone for ErrorLocationRange
impl Clone for ErrorLocationRange
Source§fn clone(&self) -> ErrorLocationRange
fn clone(&self) -> ErrorLocationRange
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 moreSource§impl Debug for ErrorLocationRange
impl Debug for ErrorLocationRange
Source§impl Default for ErrorLocationRange
impl Default for ErrorLocationRange
Source§fn default() -> ErrorLocationRange
fn default() -> ErrorLocationRange
Returns the “default value” for a type. Read more
Source§impl Hash for ErrorLocationRange
impl Hash for ErrorLocationRange
Source§impl Ord for ErrorLocationRange
impl Ord for ErrorLocationRange
Source§fn cmp(&self, other: &ErrorLocationRange) -> Ordering
fn cmp(&self, other: &ErrorLocationRange) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ErrorLocationRange
impl PartialEq for ErrorLocationRange
Source§fn eq(&self, other: &ErrorLocationRange) -> bool
fn eq(&self, other: &ErrorLocationRange) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ErrorLocationRange
impl PartialOrd for ErrorLocationRange
impl Copy for ErrorLocationRange
impl Eq for ErrorLocationRange
impl StructuralPartialEq for ErrorLocationRange
Auto Trait Implementations§
impl Freeze for ErrorLocationRange
impl RefUnwindSafe for ErrorLocationRange
impl Send for ErrorLocationRange
impl Sync for ErrorLocationRange
impl Unpin for ErrorLocationRange
impl UnsafeUnpin for ErrorLocationRange
impl UnwindSafe for ErrorLocationRange
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