#[non_exhaustive]pub struct ArrayShape {
pub indexed: BTreeMap<usize, TypeFact>,
pub element: Option<Box<TypeFact>>,
}Expand description
Shape information for a Perl array or array-like literal.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.indexed: BTreeMap<usize, TypeFact>Known statically-addressable array indexes.
element: Option<Box<TypeFact>>Fallback fact for unknown indexes when the array element type is known.
Implementations§
Trait Implementations§
Source§impl Clone for ArrayShape
impl Clone for ArrayShape
Source§fn clone(&self) -> ArrayShape
fn clone(&self) -> ArrayShape
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 ArrayShape
impl Debug for ArrayShape
Source§impl PartialEq for ArrayShape
impl PartialEq for ArrayShape
Source§fn eq(&self, other: &ArrayShape) -> bool
fn eq(&self, other: &ArrayShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ArrayShape
Auto Trait Implementations§
impl Freeze for ArrayShape
impl RefUnwindSafe for ArrayShape
impl Send for ArrayShape
impl Sync for ArrayShape
impl Unpin for ArrayShape
impl UnsafeUnpin for ArrayShape
impl UnwindSafe for ArrayShape
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