pub struct SourceRange { /* private fields */ }Expand description
Text range within a resource. All numbers are zero-based.
Implementations§
Source§impl SourceRange
impl SourceRange
Sourcepub fn builder(
start_line: i64,
start_column: i64,
end_line: i64,
end_column: i64,
) -> SourceRangeBuilder
pub fn builder( start_line: i64, start_column: i64, end_line: i64, end_column: i64, ) -> SourceRangeBuilder
Creates a builder for this type with the required parameters:
start_line: Start line of range.start_column: Start column of range (inclusive).end_line: End line of rangeend_column: End column of range (exclusive).
Sourcepub fn start_line(&self) -> i64
pub fn start_line(&self) -> i64
Start line of range.
Sourcepub fn start_column(&self) -> i64
pub fn start_column(&self) -> i64
Start column of range (inclusive).
Sourcepub fn end_column(&self) -> i64
pub fn end_column(&self) -> i64
End column of range (exclusive).
Trait Implementations§
Source§impl Clone for SourceRange
impl Clone for SourceRange
Source§fn clone(&self) -> SourceRange
fn clone(&self) -> SourceRange
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 SourceRange
impl Debug for SourceRange
Source§impl Default for SourceRange
impl Default for SourceRange
Source§fn default() -> SourceRange
fn default() -> SourceRange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SourceRange
impl<'de> Deserialize<'de> for SourceRange
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
Auto Trait Implementations§
impl Freeze for SourceRange
impl RefUnwindSafe for SourceRange
impl Send for SourceRange
impl Sync for SourceRange
impl Unpin for SourceRange
impl UnsafeUnpin for SourceRange
impl UnwindSafe for SourceRange
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