pub struct IntLiteral(pub u16);Expand description
An (signed or unsigned) int literal.
This is primarily only used for .fill, which is sign-agnostic.
Tuple Fields§
§0: u16Trait Implementations§
source§impl Clone for IntLiteral
impl Clone for IntLiteral
source§fn clone(&self) -> IntLiteral
fn clone(&self) -> IntLiteral
Returns a copy of the value. Read more
1.0.0 · 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 IntLiteral
impl Debug for IntLiteral
source§impl Default for IntLiteral
impl Default for IntLiteral
source§fn default() -> IntLiteral
fn default() -> IntLiteral
Returns the “default value” for a type. Read more
source§impl Hash for IntLiteral
impl Hash for IntLiteral
source§impl Ord for IntLiteral
impl Ord for IntLiteral
source§fn cmp(&self, other: &IntLiteral) -> Ordering
fn cmp(&self, other: &IntLiteral) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for IntLiteral
impl PartialEq for IntLiteral
source§impl PartialOrd for IntLiteral
impl PartialOrd for IntLiteral
impl Copy for IntLiteral
impl Eq for IntLiteral
impl StructuralPartialEq for IntLiteral
Auto Trait Implementations§
impl Freeze for IntLiteral
impl RefUnwindSafe for IntLiteral
impl Send for IntLiteral
impl Sync for IntLiteral
impl Unpin for IntLiteral
impl UnwindSafe for IntLiteral
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<S> Parse for Swhere
S: TokenParse,
impl<S> Parse for Swhere
S: TokenParse,
source§impl<T> TokenParse for Twhere
T: DirectTokenParse,
impl<T> TokenParse for Twhere
T: DirectTokenParse,
source§type Intermediate = T
type Intermediate = T
An intermediate to hold the match before it is converted to the actual component.
source§fn match_(
m_token: Option<&Token>,
span: Range<usize>,
) -> Result<<T as TokenParse>::Intermediate, ParseErr>
fn match_( m_token: Option<&Token>, span: Range<usize>, ) -> Result<<T as TokenParse>::Intermediate, ParseErr>
Tries to match the next token to the given component, if possible. Read more
source§fn convert(
imed: <T as TokenParse>::Intermediate,
_span: Range<usize>,
) -> Result<T, ParseErr>
fn convert( imed: <T as TokenParse>::Intermediate, _span: Range<usize>, ) -> Result<T, ParseErr>
Parses the intermediate into the given component, raising an error if conversion fails.