Struct dprint_swc_ecma_ast_view::BytePos [−][src]
A byte offset. Keep this small (currently 32-bits), as AST contains a lot of them.
Trait Implementations
impl Add<BytePos> for BytePos
[src]
type Output = BytePos
The resulting type after applying the +
operator.
pub fn add(self, rhs: BytePos) -> BytePos
[src]
impl Clone for BytePos
[src]
impl Copy for BytePos
[src]
impl Debug for BytePos
[src]
impl<'de> Deserialize<'de> for BytePos
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<BytePos, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<BytePos, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for BytePos
[src]
impl EqIgnoreSpan for BytePos
[src]
pub fn eq_ignore_span(&self, other: &BytePos) -> bool
[src]
impl Hash for BytePos
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for BytePos
[src]
pub fn cmp(&self, other: &BytePos) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<BytePos> for BytePos
[src]
impl PartialOrd<BytePos> for BytePos
[src]
pub fn partial_cmp(&self, other: &BytePos) -> Option<Ordering>
[src]
pub fn lt(&self, other: &BytePos) -> bool
[src]
pub fn le(&self, other: &BytePos) -> bool
[src]
pub fn gt(&self, other: &BytePos) -> bool
[src]
pub fn ge(&self, other: &BytePos) -> bool
[src]
impl Serialize for BytePos
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Spanned for BytePos
[src]
impl StructuralEq for BytePos
[src]
impl StructuralPartialEq for BytePos
[src]
impl Sub<BytePos> for BytePos
[src]
type Output = BytePos
The resulting type after applying the -
operator.
pub fn sub(self, rhs: BytePos) -> BytePos
[src]
impl TypeEq for BytePos
[src]
Auto Trait Implementations
impl RefUnwindSafe for BytePos
[src]
impl Send for BytePos
[src]
impl Sync for BytePos
[src]
impl Unpin for BytePos
[src]
impl UnwindSafe for BytePos
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Node for T where
T: Any + ?Sized,
T: Any + ?Sized,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,