#[repr(C, align(8))]pub struct CodePage(pub [u8; 512]);
Tuple Fields§
§0: [u8; 512]
Implementations§
Source§impl CodePage
impl CodePage
pub const fn to_char(&self, c: u8) -> Option<char>
pub const fn from_char(&self, c: char) -> Option<u8>
pub fn load_or_exit_with_msg(exit_code: u8) -> &'static CodePage
pub fn load() -> Result<&'static CodePage, CodePageLoadError>
pub fn inkey(&self) -> Result<Option<Either<u8, char>>, InkeyErr>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodePage
impl RefUnwindSafe for CodePage
impl Send for CodePage
impl Sync for CodePage
impl Unpin for CodePage
impl UnwindSafe for CodePage
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