pub struct PlayerBlockSpec {
pub player_index: u8,
pub base: usize,
pub len: usize,
pub slices: Vec<ObsSliceSpec>,
}Expand description
Per-player observation block specification.
Fields§
§player_index: u8Player index (0 or 1).
base: usizeBase index for the block.
len: usizeBlock length.
slices: Vec<ObsSliceSpec>Slices inside the block.
Trait Implementations§
Source§impl Clone for PlayerBlockSpec
impl Clone for PlayerBlockSpec
Source§fn clone(&self) -> PlayerBlockSpec
fn clone(&self) -> PlayerBlockSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerBlockSpec
impl Debug for PlayerBlockSpec
Auto Trait Implementations§
impl Freeze for PlayerBlockSpec
impl RefUnwindSafe for PlayerBlockSpec
impl Send for PlayerBlockSpec
impl Sync for PlayerBlockSpec
impl Unpin for PlayerBlockSpec
impl UnwindSafe for PlayerBlockSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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