pub struct SourceRange { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Expand description
Text range within a resource. All numbers are zero-based.
Implementations§
Source§impl SourceRange
impl SourceRange
pub fn builder() -> SourceRangeBuilder
Sourcepub fn start_line(&self) -> u32
pub fn start_line(&self) -> u32
Start line of range.
Sourcepub fn start_column(&self) -> u32
pub fn start_column(&self) -> u32
Start column of range (inclusive).
Sourcepub fn end_column(&self) -> u32
pub fn end_column(&self) -> u32
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 · 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<'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 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