pub struct LinearPosition { /* private fields */ }Expand description
Linear position in the ECMAScript source code.
Stores linear position in the source code.
Implementations§
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for LinearPosition
impl<'arbitrary> Arbitrary<'arbitrary> for LinearPosition
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for LinearPosition
impl Clone for LinearPosition
Source§fn clone(&self) -> LinearPosition
fn clone(&self) -> LinearPosition
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 moreimpl Copy for LinearPosition
Source§impl Debug for LinearPosition
impl Debug for LinearPosition
Source§impl Default for LinearPosition
impl Default for LinearPosition
Source§fn default() -> LinearPosition
fn default() -> LinearPosition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinearPosition
impl<'de> Deserialize<'de> for LinearPosition
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 Display for LinearPosition
impl Display for LinearPosition
impl Eq for LinearPosition
Source§impl From<LinearPosition> for LinearSpan
impl From<LinearPosition> for LinearSpan
Source§fn from(pos: LinearPosition) -> Self
fn from(pos: LinearPosition) -> Self
Converts to this type from the input type.
Source§impl Hash for LinearPosition
impl Hash for LinearPosition
Source§impl Ord for LinearPosition
impl Ord for LinearPosition
Source§fn cmp(&self, other: &LinearPosition) -> Ordering
fn cmp(&self, other: &LinearPosition) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LinearPosition
impl PartialEq for LinearPosition
Source§impl PartialOrd for LinearPosition
impl PartialOrd for LinearPosition
Source§impl Serialize for LinearPosition
impl Serialize for LinearPosition
impl StructuralPartialEq for LinearPosition
Auto Trait Implementations§
impl Freeze for LinearPosition
impl RefUnwindSafe for LinearPosition
impl Send for LinearPosition
impl Sync for LinearPosition
impl Unpin for LinearPosition
impl UnsafeUnpin for LinearPosition
impl UnwindSafe for LinearPosition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.