pub struct Config<K = Biased, D = Ix2> {
pub layout: Layout<D>,
pub name: String,
/* private fields */
}Fields§
§layout: Layout<D>§name: StringImplementations§
Source§impl<K, D> Config<K, D>where
D: Dimension,
impl<K, D> Config<K, D>where
D: Dimension,
pub fn new() -> Self
pub fn from_dim(dim: D) -> Result<Self, ShapeError>where
D: Dimension,
pub fn from_shape<Sh>(shape: Sh) -> Selfwhere
D: RemoveAxis,
Sh: ShapeBuilder<Dim = D>,
pub fn into_biased(self) -> Config<Biased, D>
pub fn into_unbiased(self) -> Config<Unbiased, D>
pub fn with_name(self, name: impl ToString) -> Self
pub fn with_layout<E>(self, layout: Layout<E>) -> Config<K, E>where
E: Dimension,
pub fn with_shape<E, Sh>(self, shape: Sh) -> Config<K, E>where
E: RemoveAxis,
Sh: ShapeBuilder<Dim = E>,
Sourcepub fn into_dimensionality<E>(self, dim: E) -> Result<Config<K, E>, ShapeError>where
E: Dimension,
pub fn into_dimensionality<E>(self, dim: E) -> Result<Config<K, E>, ShapeError>where
E: Dimension,
pub fn into_pattern(self) -> D::Pattern
pub fn ndim(&self) -> usize
Trait Implementations§
Source§impl<A, S, D, K> Borrow<Config<K, D>> for Linear<A, K, D, S>where
D: RemoveAxis,
S: RawData<Elem = A>,
impl<A, S, D, K> Borrow<Config<K, D>> for Linear<A, K, D, S>where
D: RemoveAxis,
S: RawData<Elem = A>,
Source§impl<'de, K, D> Deserialize<'de> for Config<K, D>where
D: Deserialize<'de>,
impl<'de, K, D> Deserialize<'de> for Config<K, D>where
D: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<K: Ord, D: Ord> Ord for Config<K, D>
impl<K: Ord, D: Ord> Ord for Config<K, D>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<K: PartialOrd, D: PartialOrd> PartialOrd for Config<K, D>
impl<K: PartialOrd, D: PartialOrd> PartialOrd for Config<K, D>
impl<K, D> Config for Config<K, D>where
D: Dimension,
impl<K: Eq, D: Eq> Eq for Config<K, D>
impl<K, D> StructuralPartialEq for Config<K, D>
Auto Trait Implementations§
impl<K, D> Freeze for Config<K, D>where
D: Freeze,
impl<K, D> RefUnwindSafe for Config<K, D>where
D: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, D> Send for Config<K, D>
impl<K, D> Sync for Config<K, D>
impl<K, D> Unpin for Config<K, D>
impl<K, D> UnwindSafe for Config<K, D>where
D: UnwindSafe,
K: UnwindSafe,
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