pub struct TerminalDebugApi { /* private fields */ }
Expand description
Debug API exposed to browser console for terminal inspection.
Implementations§
Source§impl TerminalDebugApi
impl TerminalDebugApi
Sourcepub fn get_missing_glyphs(&self) -> Array
pub fn get_missing_glyphs(&self) -> Array
Returns an array of glyphs that were requested but not found in the font atlas.
Sourcepub fn get_terminal_size(&self) -> JsValue
pub fn get_terminal_size(&self) -> JsValue
Returns the terminal size in cells as an object with cols
and rows
fields.
Sourcepub fn get_canvas_size(&self) -> JsValue
pub fn get_canvas_size(&self) -> JsValue
Returns the canvas size in pixels as an object with width
and height
fields.
Sourcepub fn get_glyph_count(&self) -> u32
pub fn get_glyph_count(&self) -> u32
Returns the number of glyphs available in the font atlas.
Sourcepub fn get_base_glyph_id(&self, symbol: &str) -> Option<u16>
pub fn get_base_glyph_id(&self, symbol: &str) -> Option<u16>
Returns the base glyph ID for a given symbol, or null if not found.
Sourcepub fn get_symbol(&self, glyph_id: u16) -> Option<String>
pub fn get_symbol(&self, glyph_id: u16) -> Option<String>
Returns the symbol for a given glyph ID, or null if not found.
Sourcepub fn get_cell_size(&self) -> JsValue
pub fn get_cell_size(&self) -> JsValue
Returns the cell size in pixels as an object with width
and height
fields.
Trait Implementations§
Source§impl From<TerminalDebugApi> for JsValue
impl From<TerminalDebugApi> for JsValue
Source§fn from(value: TerminalDebugApi) -> Self
fn from(value: TerminalDebugApi) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for TerminalDebugApi
impl FromWasmAbi for TerminalDebugApi
Source§impl IntoWasmAbi for TerminalDebugApi
impl IntoWasmAbi for TerminalDebugApi
Source§impl OptionFromWasmAbi for TerminalDebugApi
impl OptionFromWasmAbi for TerminalDebugApi
Source§impl OptionIntoWasmAbi for TerminalDebugApi
impl OptionIntoWasmAbi for TerminalDebugApi
Source§impl RefFromWasmAbi for TerminalDebugApi
impl RefFromWasmAbi for TerminalDebugApi
Source§type Anchor = RcRef<TerminalDebugApi>
type Anchor = RcRef<TerminalDebugApi>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for TerminalDebugApi
impl RefMutFromWasmAbi for TerminalDebugApi
Source§impl TryFromJsValue for TerminalDebugApi
impl TryFromJsValue for TerminalDebugApi
Source§impl VectorFromWasmAbi for TerminalDebugApi
impl VectorFromWasmAbi for TerminalDebugApi
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[TerminalDebugApi]>
Source§impl VectorIntoJsValue for TerminalDebugApi
impl VectorIntoJsValue for TerminalDebugApi
fn vector_into_jsvalue(vector: Box<[TerminalDebugApi]>) -> JsValue
Source§impl VectorIntoWasmAbi for TerminalDebugApi
impl VectorIntoWasmAbi for TerminalDebugApi
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[TerminalDebugApi]>) -> Self::Abi
Source§impl WasmDescribeVector for TerminalDebugApi
impl WasmDescribeVector for TerminalDebugApi
impl SupportsConstructor for TerminalDebugApi
impl SupportsInstanceProperty for TerminalDebugApi
impl SupportsStaticProperty for TerminalDebugApi
Auto Trait Implementations§
impl Freeze for TerminalDebugApi
impl !RefUnwindSafe for TerminalDebugApi
impl !Send for TerminalDebugApi
impl !Sync for TerminalDebugApi
impl Unpin for TerminalDebugApi
impl !UnwindSafe for TerminalDebugApi
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.