#[repr(C)]pub struct ParamSpec {
pub name: &'static str,
pub kind: PrimitiveKind,
pub min_elems: u32,
pub max_elems: u32,
}Expand description
Parameter specification for an extension function.
Fields§
§name: &'static strParameter name (UTF-8 static identifier).
kind: PrimitiveKindElement primitive kind expected in the corresponding BorrowedSliceView.
min_elems: u32Minimum element count required (1 for scalar, N for fixed vector/tuple).
max_elems: u32Maximum element count permitted (u32::MAX for unbounded slice within envelope).
Implementations§
Trait Implementations§
impl Copy for ParamSpec
impl Eq for ParamSpec
impl StructuralPartialEq for ParamSpec
Auto Trait Implementations§
impl Freeze for ParamSpec
impl RefUnwindSafe for ParamSpec
impl Send for ParamSpec
impl Sync for ParamSpec
impl Unpin for ParamSpec
impl UnsafeUnpin for ParamSpec
impl UnwindSafe for ParamSpec
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