Struct bitsy_lang::ast::WordLit
source · pub struct WordLit(pub Option<Width>, pub u64);Expand description
A WordLit is a literal for a hardware integer with an optional width ascription.
Tuple Fields§
§0: Option<Width>§1: u64Implementations§
Trait Implementations§
source§impl Ord for WordLit
impl Ord for WordLit
source§impl PartialEq for WordLit
impl PartialEq for WordLit
source§impl PartialOrd for WordLit
impl PartialOrd for WordLit
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 moreimpl Eq for WordLit
impl StructuralEq for WordLit
impl StructuralPartialEq for WordLit
Auto Trait Implementations§
impl RefUnwindSafe for WordLit
impl Send for WordLit
impl Sync for WordLit
impl Unpin for WordLit
impl UnwindSafe for WordLit
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.