pub enum RangeParam {
Literal(usize),
MacroArg(LocalVarId),
}Expand description
A bit position or width in a Range, which a macro may parameterise.
Variants§
Literal(usize)
A constant number of bits.
MacroArg(LocalVarId)
A macro parameter standing in for one. Substituted when the macro is expanded, so a consumer does not see this variant.
Trait Implementations§
Source§impl Clone for RangeParam
impl Clone for RangeParam
Source§fn clone(&self) -> RangeParam
fn clone(&self) -> RangeParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RangeParam
impl Debug for RangeParam
Source§impl<'de> Deserialize<'de> for RangeParam
impl<'de> Deserialize<'de> for RangeParam
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RangeParam
Source§impl PartialEq for RangeParam
impl PartialEq for RangeParam
Source§impl Serialize for RangeParam
impl Serialize for RangeParam
impl StructuralPartialEq for RangeParam
Auto Trait Implementations§
impl Freeze for RangeParam
impl RefUnwindSafe for RangeParam
impl Send for RangeParam
impl Sync for RangeParam
impl Unpin for RangeParam
impl UnsafeUnpin for RangeParam
impl UnwindSafe for RangeParam
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