pub struct BlockLocation {
pub start_byte: usize,
pub end_byte: usize,
pub start_row: usize,
pub start_col: usize,
pub end_row: usize,
pub end_col: usize,
}
Fields§
§start_byte: usize
§end_byte: usize
§start_row: usize
§start_col: usize
§end_row: usize
§end_col: usize
Trait Implementations§
Source§impl Clone for BlockLocation
impl Clone for BlockLocation
Source§fn clone(&self) -> BlockLocation
fn clone(&self) -> BlockLocation
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 BlockLocation
impl Debug for BlockLocation
Source§impl Default for BlockLocation
impl Default for BlockLocation
Source§fn default() -> BlockLocation
fn default() -> BlockLocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockLocation
impl<'de> Deserialize<'de> for BlockLocation
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<&Block<'_>> for BlockLocation
impl From<&Block<'_>> for BlockLocation
Source§impl From<Block<'_>> for BlockLocation
impl From<Block<'_>> for BlockLocation
Source§impl Hash for BlockLocation
impl Hash for BlockLocation
Source§impl Ord for BlockLocation
impl Ord for BlockLocation
Source§fn cmp(&self, other: &BlockLocation) -> Ordering
fn cmp(&self, other: &BlockLocation) -> 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 BlockLocation
impl PartialEq for BlockLocation
Source§impl PartialOrd for BlockLocation
impl PartialOrd for BlockLocation
Source§impl Serialize for BlockLocation
impl Serialize for BlockLocation
impl Eq for BlockLocation
impl StructuralPartialEq for BlockLocation
Auto Trait Implementations§
impl Freeze for BlockLocation
impl RefUnwindSafe for BlockLocation
impl Send for BlockLocation
impl Sync for BlockLocation
impl Unpin for BlockLocation
impl UnwindSafe for BlockLocation
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