pub struct Integer<T = i64>where
T: Display + Debug + Clone,{
pub range: Range<Option<T>>,
pub constants: Vec<(String, i64), Global>,
}
Fields§
§range: Range<Option<T>>
§constants: Vec<(String, i64), Global>
Implementations§
Trait Implementations§
source§impl<T> PartialEq<Integer<T>> for Integer<T>where
T: PartialEq<T> + Display + Debug + Clone,
impl<T> PartialEq<Integer<T>> for Integer<T>where T: PartialEq<T> + Display + Debug + Clone,
source§impl<T> PartialOrd<Integer<T>> for Integer<T>where
T: PartialOrd<T> + Display + Debug + Clone,
impl<T> PartialOrd<Integer<T>> for Integer<T>where T: PartialOrd<T> + Display + Debug + Clone,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T> TryFrom<&mut Peekable<T>> for Integer<<Unresolved as ResolveState>::RangeType>where
T: Iterator<Item = Token>,
impl<T> TryFrom<&mut Peekable<T>> for Integer<<Unresolved as ResolveState>::RangeType>where T: Iterator<Item = Token>,
source§fn try_from(
iter: &mut Peekable<T>
) -> Result<Integer<<Unresolved as ResolveState>::RangeType>, <Integer<<Unresolved as ResolveState>::RangeType> as TryFrom<&mut Peekable<T>>>::Error>
fn try_from( iter: &mut Peekable<T> ) -> Result<Integer<<Unresolved as ResolveState>::RangeType>, <Integer<<Unresolved as ResolveState>::RangeType> as TryFrom<&mut Peekable<T>>>::Error>
Performs the conversion.
impl<T> Eq for Integer<T>where T: Eq + Display + Debug + Clone,
impl<T> StructuralEq for Integer<T>where T: Display + Debug + Clone,
impl<T> StructuralPartialEq for Integer<T>where T: Display + Debug + Clone,
Auto Trait Implementations§
impl<T> RefUnwindSafe for Integer<T>where T: RefUnwindSafe,
impl<T> Send for Integer<T>where T: Send,
impl<T> Sync for Integer<T>where T: Sync,
impl<T> Unpin for Integer<T>where T: Unpin,
impl<T> UnwindSafe for Integer<T>where T: UnwindSafe,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.