#[repr(C)]pub enum FFI_Distribution {
Uniform(FFI_UniformDistribution),
Exponential(FFI_ExponentialDistribution),
Gaussian(FFI_GaussianDistribution),
Bernoulli(FFI_BernoulliDistribution),
Generic(FFI_GenericDistribution),
}Expand description
A stable struct for sharing Distribution across FFI boundaries.
See [‘Distribution’] for the meaning of each variant.
Variants§
Uniform(FFI_UniformDistribution)
Exponential(FFI_ExponentialDistribution)
Gaussian(FFI_GaussianDistribution)
Bernoulli(FFI_BernoulliDistribution)
Generic(FFI_GenericDistribution)
Trait Implementations§
Source§impl Debug for FFI_Distribution
impl Debug for FFI_Distribution
Source§impl TryFrom<&Distribution> for FFI_Distribution
impl TryFrom<&Distribution> for FFI_Distribution
Source§type Error = DataFusionError
type Error = DataFusionError
The type returned in the event of a conversion error.
Source§impl TryFrom<FFI_Distribution> for Distribution
impl TryFrom<FFI_Distribution> for Distribution
Source§type Error = DataFusionError
type Error = DataFusionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !Sync for FFI_Distribution
impl Freeze for FFI_Distribution
impl RefUnwindSafe for FFI_Distribution
impl Send for FFI_Distribution
impl Unpin for FFI_Distribution
impl UnsafeUnpin for FFI_Distribution
impl UnwindSafe for FFI_Distribution
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more