Struct deno_graph::PositionRange
source · pub struct PositionRange {
pub start: Position,
pub end: Position,
}
Fields§
§start: Position
§end: Position
Implementations§
source§impl PositionRange
impl PositionRange
pub fn zeroed() -> Self
pub fn from_source_range(range: SourceRange, text_info: &SourceTextInfo) -> Self
pub fn as_source_range(&self, text_info: &SourceTextInfo) -> SourceRange
Trait Implementations§
source§impl Clone for PositionRange
impl Clone for PositionRange
source§fn clone(&self) -> PositionRange
fn clone(&self) -> PositionRange
Returns a copy 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 PositionRange
impl Debug for PositionRange
source§impl<'de> Deserialize<'de> for PositionRange
impl<'de> Deserialize<'de> for PositionRange
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
source§impl PartialEq for PositionRange
impl PartialEq for PositionRange
source§fn eq(&self, other: &PositionRange) -> bool
fn eq(&self, other: &PositionRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PositionRange
impl Serialize for PositionRange
impl Eq for PositionRange
impl StructuralPartialEq for PositionRange
Auto Trait Implementations§
impl RefUnwindSafe for PositionRange
impl Send for PositionRange
impl Sync for PositionRange
impl Unpin for PositionRange
impl UnwindSafe for PositionRange
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.