pub struct VlaId(pub u32);Expand description
The identity of one variable length array’s size expression.
An opaque number handed out by whoever is building the type, which in practice is semantic analysis walking a declarator. This crate never looks inside it; it is here so that interning two variable length arrays does not accidentally make them the same type.
Tuple Fields§
§0: u32Trait Implementations§
impl Copy for VlaId
impl Eq for VlaId
Source§impl Ord for VlaId
impl Ord for VlaId
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for VlaId
impl PartialOrd for VlaId
impl StructuralPartialEq for VlaId
Auto Trait Implementations§
impl Freeze for VlaId
impl RefUnwindSafe for VlaId
impl Send for VlaId
impl Sync for VlaId
impl Unpin for VlaId
impl UnsafeUnpin for VlaId
impl UnwindSafe for VlaId
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