[−][src]Struct srcpos_get::Pos
Posation in source code
Fields
line: usize
nth of line
column: usize
nth of characters in current line
Implementations
impl Pos
[src]
pub const fn zero() -> Pos
[src]
New zero
pub const fn new(line: usize, column: usize) -> Pos
[src]
New at
pub const fn new_same(value: usize) -> Pos
[src]
New same value
Trait Implementations
impl Clone for Pos
[src]
impl Copy for Pos
[src]
impl Debug for Pos
[src]
impl Default for Pos
[src]
impl<'de> Deserialize<'de> for Pos
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Pos, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Pos, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Display for Pos
[src]
impl Eq for Pos
[src]
impl<T> From<[T; 0]> for Pos
[src]
impl From<[usize; 1]> for Pos
[src]
impl From<[usize; 2]> for Pos
[src]
impl From<()> for Pos
[src]
impl From<(usize, usize)> for Pos
[src]
impl From<Pos> for Loc
[src]
impl From<usize> for Pos
[src]
impl GetPos for Pos
[src]
impl Hash for Pos
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Into<[usize; 1]> for Pos
[src]
impl Into<[usize; 2]> for Pos
[src]
impl Into<(usize, usize)> for Pos
[src]
impl Into<Pos> for Loc
[src]
impl Into<usize> for Pos
[src]
impl Ord for Pos
[src]
pub fn cmp(&self, other: &Pos) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Pos> for Pos
[src]
impl PartialOrd<Pos> for Pos
[src]
pub fn partial_cmp(&self, other: &Pos) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Pos) -> bool
[src]
pub fn le(&self, other: &Pos) -> bool
[src]
pub fn gt(&self, other: &Pos) -> bool
[src]
pub fn ge(&self, other: &Pos) -> bool
[src]
impl Serialize for Pos
[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 StructuralEq for Pos
[src]
impl StructuralPartialEq for Pos
[src]
Auto Trait Implementations
impl RefUnwindSafe for Pos
impl Send for Pos
impl Sync for Pos
impl Unpin for Pos
impl UnwindSafe for Pos
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> 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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,