pub enum RevealError {
Unexpected,
NotProvided,
BadLayer,
BadLabels,
}Variants§
Unexpected
A call out of turn: memory without a pending Step::NeedMemory, observation before
Step::NeedObservations, a frame outside Step::Decode, a step while a frame is owed, or a step after the
session finished.
NotProvided
Stepped again after Step::NeedTile without inserting the tile.
BadLayer
A layer whose pixel span is empty or whose atlas code is above 255.
BadLabels
A label plane that is not width × height bytes.
Trait Implementations§
Source§impl Clone for RevealError
impl Clone for RevealError
impl Copy for RevealError
Source§impl Debug for RevealError
impl Debug for RevealError
impl Eq for RevealError
Source§impl PartialEq for RevealError
impl PartialEq for RevealError
impl StructuralPartialEq for RevealError
Auto Trait Implementations§
impl Freeze for RevealError
impl RefUnwindSafe for RevealError
impl Send for RevealError
impl Sync for RevealError
impl Unpin for RevealError
impl UnsafeUnpin for RevealError
impl UnwindSafe for RevealError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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