pub struct RangeWithoutByte {
pub start: Position,
pub end: Position,
}Fields§
§start: Position§end: PositionImplementations§
Source§impl RangeWithoutByte
impl RangeWithoutByte
pub fn start_column(&self) -> u32
pub fn end_column(&self) -> u32
pub fn start_line(&self) -> u32
pub fn end_line(&self) -> u32
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for RangeWithoutByte
impl Clone for RangeWithoutByte
Source§fn clone(&self) -> RangeWithoutByte
fn clone(&self) -> RangeWithoutByte
Returns a duplicate 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 RangeWithoutByte
impl Debug for RangeWithoutByte
Source§impl<'de> Deserialize<'de> for RangeWithoutByte
impl<'de> Deserialize<'de> for RangeWithoutByte
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Range> for RangeWithoutByte
impl From<Range> for RangeWithoutByte
Source§impl From<RangeWithoutByte> for UtilRange
impl From<RangeWithoutByte> for UtilRange
Source§fn from(range: RangeWithoutByte) -> Self
fn from(range: RangeWithoutByte) -> Self
Converts to this type from the input type.
Source§impl Hash for RangeWithoutByte
impl Hash for RangeWithoutByte
Source§impl Ord for RangeWithoutByte
impl Ord for RangeWithoutByte
Source§fn cmp(&self, other: &RangeWithoutByte) -> Ordering
fn cmp(&self, other: &RangeWithoutByte) -> Ordering
1.21.0 · 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 RangeWithoutByte
impl PartialEq for RangeWithoutByte
Source§impl PartialOrd for RangeWithoutByte
impl PartialOrd for RangeWithoutByte
Source§impl Serialize for RangeWithoutByte
impl Serialize for RangeWithoutByte
impl Eq for RangeWithoutByte
impl StructuralPartialEq for RangeWithoutByte
Auto Trait Implementations§
impl Freeze for RangeWithoutByte
impl RefUnwindSafe for RangeWithoutByte
impl Send for RangeWithoutByte
impl Sync for RangeWithoutByte
impl Unpin for RangeWithoutByte
impl UnwindSafe for RangeWithoutByte
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