pub struct LocationRange<'a> { /* private fields */ }Expand description
Location range within one script.
Implementations§
Source§impl<'a> LocationRange<'a>
impl<'a> LocationRange<'a>
Sourcepub fn builder(
script_id: ScriptId<'a>,
start: ScriptPosition,
end: ScriptPosition,
) -> LocationRangeBuilder<'a>
pub fn builder( script_id: ScriptId<'a>, start: ScriptPosition, end: ScriptPosition, ) -> LocationRangeBuilder<'a>
Creates a builder for this type with the required parameters:
script_id:start:end:
pub fn script_id(&self) -> &ScriptId<'a>
pub fn start(&self) -> &ScriptPosition
pub fn end(&self) -> &ScriptPosition
Trait Implementations§
Source§impl<'a> Clone for LocationRange<'a>
impl<'a> Clone for LocationRange<'a>
Source§fn clone(&self) -> LocationRange<'a>
fn clone(&self) -> LocationRange<'a>
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<'a> Debug for LocationRange<'a>
impl<'a> Debug for LocationRange<'a>
Source§impl<'a> Default for LocationRange<'a>
impl<'a> Default for LocationRange<'a>
Source§fn default() -> LocationRange<'a>
fn default() -> LocationRange<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for LocationRange<'a>
impl<'de, 'a> Deserialize<'de> for LocationRange<'a>
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<'a> Freeze for LocationRange<'a>
impl<'a> RefUnwindSafe for LocationRange<'a>
impl<'a> Send for LocationRange<'a>
impl<'a> Sync for LocationRange<'a>
impl<'a> Unpin for LocationRange<'a>
impl<'a> UnsafeUnpin for LocationRange<'a>
impl<'a> UnwindSafe for LocationRange<'a>
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