pub trait ToExternalZeroCopy<T> {
// Required methods
fn to_external_zero_copy(&self) -> Result<T>;
fn can_zero_copy(&self) -> bool;
}Expand description
Trait for zero-copy conversion to external types when possible
Required Methods§
Sourcefn to_external_zero_copy(&self) -> Result<T>
fn to_external_zero_copy(&self) -> Result<T>
Attempt zero-copy conversion, falling back to copy if necessary
Sourcefn can_zero_copy(&self) -> bool
fn can_zero_copy(&self) -> bool
Check if zero-copy conversion is possible