pub enum ParamConversion {
Direct,
SliceToPtrLen,
StrToPtrLen,
}Expand description
Conversion strategy for function parameters
Variants§
Direct
Direct pass-through (primitive types)
SliceToPtrLen
Convert &[T] to (ptr, len)
StrToPtrLen
Convert &str to (ptr, len)
Trait Implementations§
Source§impl Clone for ParamConversion
impl Clone for ParamConversion
Source§fn clone(&self) -> ParamConversion
fn clone(&self) -> ParamConversion
Returns a duplicate of the value. Read more
1.0.0 · 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 ParamConversion
impl Debug for ParamConversion
Source§impl PartialEq for ParamConversion
impl PartialEq for ParamConversion
impl StructuralPartialEq for ParamConversion
Auto Trait Implementations§
impl Freeze for ParamConversion
impl RefUnwindSafe for ParamConversion
impl Send for ParamConversion
impl Sync for ParamConversion
impl Unpin for ParamConversion
impl UnwindSafe for ParamConversion
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