pub struct SourceRangeBuilder { /* private fields */ }Expand description
Builder for SourceRange.
Implementations§
Source§impl SourceRangeBuilder
impl SourceRangeBuilder
Sourcepub fn start_line<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn start_line<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Start line of range.
Sourcepub fn start_column<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn start_column<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Start column of range (inclusive).
Sourcepub fn end_column<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn end_column<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
End column of range (exclusive).
Sourcepub fn build(&self) -> Result<SourceRange, SourceRangeBuilderError>
pub fn build(&self) -> Result<SourceRange, SourceRangeBuilderError>
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 moreAuto Trait Implementations§
impl Freeze for SourceRangeBuilder
impl RefUnwindSafe for SourceRangeBuilder
impl Send for SourceRangeBuilder
impl Sync for SourceRangeBuilder
impl Unpin for SourceRangeBuilder
impl UnsafeUnpin 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