#[repr(u8)]pub enum BankId {
Show 16 variants
A = 0,
B = 1,
C = 2,
D = 3,
E = 4,
F = 5,
G = 6,
H = 7,
I = 8,
J = 9,
K = 10,
L = 11,
M = 12,
N = 13,
O = 14,
P = 15,
}Expand description
Identifier values for Banks, allowing for panic-free indexing via id* methods.
Variants§
A = 0
B = 1
C = 2
D = 3
E = 4
F = 5
G = 6
H = 7
I = 8
J = 9
K = 10
L = 11
M = 12
N = 13
O = 14
P = 15
Implementations§
Source§impl BankId
impl BankId
Sourcepub fn as_index(&self) -> usize
pub fn as_index(&self) -> usize
Get the identifier variant as a zero-indexed integer for raw array indexing
Sourcepub fn file_name(&self) -> String
pub fn file_name(&self) -> String
Get the relevant file name path component for a crate::banks::BankFile given the
identifier’s value
Sourcepub fn file_stem(&self, state: &SavedState) -> String
pub fn file_stem(&self, state: &SavedState) -> String
Get the relevant file stem path component for a crate::banks::BankFile given the
identifier’s value and some SavedState
Trait Implementations§
impl Copy for BankId
impl Eq for BankId
Source§impl Ord for BankId
impl Ord for BankId
1.21.0 (const: unstable) · 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 PartialOrd for BankId
impl PartialOrd for BankId
Source§impl Sequence for BankId
impl Sequence for BankId
impl StructuralPartialEq for BankId
Auto Trait Implementations§
impl Freeze for BankId
impl RefUnwindSafe for BankId
impl Send for BankId
impl Sync for BankId
impl Unpin for BankId
impl UnsafeUnpin for BankId
impl UnwindSafe for BankId
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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