Struct asn1rs_model::model::Integer
source · pub struct Integer<T: Display + Debug + Clone = i64> {
pub range: Range<Option<T>>,
pub constants: Vec<(String, i64)>,
}
Fields§
§range: Range<Option<T>>
§constants: Vec<(String, i64)>
Implementations§
Trait Implementations§
source§impl<T: PartialEq + Display + Debug + Clone> PartialEq<Integer<T>> for Integer<T>
impl<T: PartialEq + Display + Debug + Clone> PartialEq<Integer<T>> for Integer<T>
source§impl<T: PartialOrd + Display + Debug + Clone> PartialOrd<Integer<T>> for Integer<T>
impl<T: PartialOrd + Display + Debug + Clone> PartialOrd<Integer<T>> for Integer<T>
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: Iterator<Item = Token>> TryFrom<&mut Peekable<T>> for Integer<<Unresolved as ResolveState>::RangeType>
impl<T: Iterator<Item = Token>> TryFrom<&mut Peekable<T>> for Integer<<Unresolved as ResolveState>::RangeType>
source§impl TryResolve<i64, Integer<i64>> for Integer<LitOrRef<i64>>
impl TryResolve<i64, Integer<i64>> for Integer<LitOrRef<i64>>
fn try_resolve( &self, resolver: &impl Resolver<i64> ) -> Result<Integer<i64>, ResolveError>
impl<T: Eq + Display + Debug + Clone> Eq for Integer<T>
impl<T: Display + Debug + Clone> StructuralEq for Integer<T>
impl<T: Display + Debug + Clone> StructuralPartialEq for Integer<T>
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.