pub struct Table<X, T, const N: usize> {
pub all: [T; N],
/* private fields */
}Expand description
“Full” table, containing an element of T for every value of X.
Fields§
§all: [T; N]Implementations§
Source§impl Table<Player, Table<Role, [Option<Square>; 10], { $crate::finite_set!(@count $($variant),+) }>, { $crate::finite_set!(@count $($variant),+) }>
impl Table<Player, Table<Role, [Option<Square>; 10], { $crate::finite_set!(@count $($variant),+) }>, { $crate::finite_set!(@count $($variant),+) }>
Trait Implementations§
impl<X: Copy, T: Copy, const N: usize> Copy for Table<X, T, N>
impl<X: Eq, T: Eq, const N: usize> Eq for Table<X, T, N>
Source§impl<X: PartialEq, T: PartialEq, const N: usize> PartialEq for Table<X, T, N>
impl<X: PartialEq, T: PartialEq, const N: usize> PartialEq for Table<X, T, N>
Source§impl<X, T, const N: usize> Serialize for Table<X, T, N>
Available on crate feature serde only.
impl<X, T, const N: usize> Serialize for Table<X, T, N>
Available on crate feature
serde only.impl<X: PartialEq, T: PartialEq, const N: usize> StructuralPartialEq for Table<X, T, N>
Auto Trait Implementations§
impl<X, T, const N: usize> Freeze for Table<X, T, N>where
T: Freeze,
impl<X, T, const N: usize> RefUnwindSafe for Table<X, T, N>where
T: RefUnwindSafe,
X: RefUnwindSafe,
impl<X, T, const N: usize> Send for Table<X, T, N>
impl<X, T, const N: usize> Sync for Table<X, T, N>
impl<X, T, const N: usize> Unpin for Table<X, T, N>
impl<X, T, const N: usize> UnsafeUnpin for Table<X, T, N>where
T: UnsafeUnpin,
impl<X, T, const N: usize> UnwindSafe for Table<X, T, N>where
T: UnwindSafe,
X: 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