pub struct LocationRangeBuilder { /* private fields */ }Expand description
Builder for LocationRange.
Implementations§
Source§impl LocationRangeBuilder
impl LocationRangeBuilder
pub fn script_id<VALUE: Into<ScriptId>>(&mut self, value: VALUE) -> &mut Self
pub fn start<VALUE: Into<ScriptPosition>>(&mut self, value: VALUE) -> &mut Self
pub fn end<VALUE: Into<ScriptPosition>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<LocationRange, LocationRangeBuilderError>
pub fn build(&self) -> Result<LocationRange, LocationRangeBuilderError>
Trait Implementations§
Source§impl Clone for LocationRangeBuilder
impl Clone for LocationRangeBuilder
Source§fn clone(&self) -> LocationRangeBuilder
fn clone(&self) -> LocationRangeBuilder
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 LocationRangeBuilder
impl RefUnwindSafe for LocationRangeBuilder
impl Send for LocationRangeBuilder
impl Sync for LocationRangeBuilder
impl Unpin for LocationRangeBuilder
impl UnsafeUnpin for LocationRangeBuilder
impl UnwindSafe for LocationRangeBuilder
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