pub enum ArraySize {
Unspecified,
Star,
Expr(ExprId),
}Expand description
What was written between a declarator’s brackets.
Variants§
Unspecified
Nothing, as in int a[], which is an incomplete type or a parameter depending on
where it is written.
Star
*, which is a variably-modified type in a prototype whose size is not named.
Expr(ExprId)
An expression, which is a constant in an ordinary array and anything at all in a VLA.
Trait Implementations§
impl Copy for ArraySize
impl Eq for ArraySize
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