pub enum ArraySize {
Unspecified,
Star,
Expr(Box<Expr>),
}Expand description
The size of an array derivation.
Variants§
Unspecified
[] — an incomplete array type.
Star
[*] — a variable length array of unspecified size, only valid in a
function prototype.
Expr(Box<Expr>)
[expr]. Whether this is a constant array bound or a VLA is decided by
constant evaluation in sema.
Trait Implementations§
impl StructuralPartialEq for ArraySize
Auto Trait Implementations§
impl Freeze for ArraySize
impl RefUnwindSafe for ArraySize
impl Send for ArraySize
impl Sync for ArraySize
impl Unpin for ArraySize
impl UnsafeUnpin for ArraySize
impl UnwindSafe for ArraySize
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