pub struct SizedCtor {
pub name: &'static str,
pub symbol: RuntimeSymbol,
pub extents: usize,
}Expand description
One sized collection constructor: the source name, the wrapper its sized form lowers to, and how many of its leading arguments are extents.
The fill is always the last argument and always exactly one, so extents
determines the source arity — which is why nothing here states an arity
twice.
Fields§
§name: &'static str§symbol: RuntimeSymbol§extents: usizeThe number of leading Int parameters: 1 for Vec(n, fill), 2 for
Grid(w, h, fill).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SizedCtor
impl RefUnwindSafe for SizedCtor
impl Send for SizedCtor
impl Sync for SizedCtor
impl Unpin for SizedCtor
impl UnsafeUnpin for SizedCtor
impl UnwindSafe for SizedCtor
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