pub struct SourceRangeBuilder { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Implementations§
Source§impl SourceRangeBuilder
impl SourceRangeBuilder
Sourcepub fn start_line(&mut self, v: u32) -> &mut Self
pub fn start_line(&mut self, v: u32) -> &mut Self
Start line of range.
Sourcepub fn start_column(&mut self, v: u32) -> &mut Self
pub fn start_column(&mut self, v: u32) -> &mut Self
Start column of range (inclusive).
Sourcepub fn end_column(&mut self, v: u32) -> &mut Self
pub fn end_column(&mut self, v: u32) -> &mut Self
End column of range (exclusive).
pub fn build(&mut self) -> Result<SourceRange, &'static str>
Trait Implementations§
Source§impl Clone for SourceRangeBuilder
impl Clone for SourceRangeBuilder
Source§fn clone(&self) -> SourceRangeBuilder
fn clone(&self) -> SourceRangeBuilder
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 SourceRangeBuilder
impl Debug for SourceRangeBuilder
Auto Trait Implementations§
impl Freeze for SourceRangeBuilder
impl RefUnwindSafe for SourceRangeBuilder
impl Send for SourceRangeBuilder
impl Sync for SourceRangeBuilder
impl Unpin for SourceRangeBuilder
impl UnwindSafe for SourceRangeBuilder
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