Enum rustc_ast::format::FormatCount
source · pub enum FormatCount {
Literal(usize),
Argument(FormatArgPosition),
}
Variants§
Trait Implementations§
source§impl Clone for FormatCount
impl Clone for FormatCount
source§fn clone(&self) -> FormatCount
fn clone(&self) -> FormatCount
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 FormatCount
impl Debug for FormatCount
source§impl<__D: Decoder> Decodable<__D> for FormatCount
impl<__D: Decoder> Decodable<__D> for FormatCount
source§impl<__E: Encoder> Encodable<__E> for FormatCount
impl<__E: Encoder> Encodable<__E> for FormatCount
source§impl PartialEq<FormatCount> for FormatCount
impl PartialEq<FormatCount> for FormatCount
source§fn eq(&self, other: &FormatCount) -> bool
fn eq(&self, other: &FormatCount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FormatCount
impl StructuralEq for FormatCount
impl StructuralPartialEq for FormatCount
Auto Trait Implementations§
impl RefUnwindSafe for FormatCount
impl !Send for FormatCount
impl !Sync for FormatCount
impl Unpin for FormatCount
impl UnwindSafe for FormatCount
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
Literal
: 16 bytesArgument
: 32 bytes