pub trait Biased<S, D>: Weighted<S, D>{
// Required methods
fn bias(&self) -> &ArrayBase<S, D::Smaller>;
fn bias_mut(&mut self) -> &mut ArrayBase<S, D::Smaller>;
// Provided methods
fn assign_bias(&mut self, bias: &ArrayBase<S, D::Smaller>) -> &mut Self
where S: DataMut,
S::Elem: Clone { ... }
fn replace_bias(
&mut self,
bias: ArrayBase<S, D::Smaller>,
) -> ArrayBase<S, D::Smaller> { ... }
fn set_bias(&mut self, bias: ArrayBase<S, D::Smaller>) -> &mut Self { ... }
fn iter_bias<'a>(&'a self) -> Iter<'a, S::Elem, D::Smaller>
where S: Data + 'a,
D: 'a { ... }
fn iter_bias_mut<'a>(&'a mut self) -> IterMut<'a, S::Elem, D::Smaller>
where S: DataMut + 'a,
D: 'a { ... }
}
Required Methods§
Provided Methods§
Sourcefn assign_bias(&mut self, bias: &ArrayBase<S, D::Smaller>) -> &mut Self
fn assign_bias(&mut self, bias: &ArrayBase<S, D::Smaller>) -> &mut Self
assigns the given bias to the current bias
Sourcefn replace_bias(
&mut self,
bias: ArrayBase<S, D::Smaller>,
) -> ArrayBase<S, D::Smaller>
fn replace_bias( &mut self, bias: ArrayBase<S, D::Smaller>, ) -> ArrayBase<S, D::Smaller>
replaces the current bias with the given bias
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.