#[non_exhaustive]pub struct HashShape {
pub slots: BTreeMap<String, TypeFact>,
pub fallback_value: Option<Box<TypeFact>>,
}Expand description
Shape information for a Perl hash or hash-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.slots: BTreeMap<String, TypeFact>Known statically-addressable hash slots.
fallback_value: Option<Box<TypeFact>>Fallback fact for unknown keys when the hash value type is known.
Implementations§
Trait Implementations§
impl StructuralPartialEq for HashShape
Auto Trait Implementations§
impl Freeze for HashShape
impl RefUnwindSafe for HashShape
impl Send for HashShape
impl Sync for HashShape
impl Unpin for HashShape
impl UnsafeUnpin for HashShape
impl UnwindSafe for HashShape
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