pub enum ArrayLength {
Literal(usize),
Symbolic(String),
}Expand description
Length argument of a PERLVARA. Usually a numeric literal, but the
preprocessor will hand us SVt_LAST-style #defined symbols too.
Variants§
Trait Implementations§
Source§impl Clone for ArrayLength
impl Clone for ArrayLength
Source§fn clone(&self) -> ArrayLength
fn clone(&self) -> ArrayLength
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ArrayLength
impl Debug for ArrayLength
Source§impl PartialEq for ArrayLength
impl PartialEq for ArrayLength
Source§fn eq(&self, other: &ArrayLength) -> bool
fn eq(&self, other: &ArrayLength) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ArrayLength
impl StructuralPartialEq for ArrayLength
Auto Trait Implementations§
impl Freeze for ArrayLength
impl RefUnwindSafe for ArrayLength
impl Send for ArrayLength
impl Sync for ArrayLength
impl Unpin for ArrayLength
impl UnsafeUnpin for ArrayLength
impl UnwindSafe for ArrayLength
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