Struct rustc_mir_build::thir::pattern::deconstruct_pat::Slice [−][src]
Expand description
A constructor for array and slice patterns.
Fields
array_len: Option<u64>None if the matched value is a slice, Some(n) if it is an array of size n.
kind: SliceKindThe kind of pattern it is: fixed-length [x, y] or variable length [x, .., y].
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sliceimpl UnwindSafe for SliceBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes