pub struct Cell { /* private fields */ }
Expand description
JavaScript wrapper for cell data
Implementations§
Source§impl Cell
impl Cell
pub fn new(symbol: String, style: &CellStyle) -> Cell
pub fn symbol(&self) -> String
pub fn set_symbol(&mut self, symbol: String)
pub fn fg(&self) -> u32
pub fn set_fg(&mut self, color: u32)
pub fn bg(&self) -> u32
pub fn set_bg(&mut self, color: u32)
pub fn style(&self) -> u16
pub fn set_style(&mut self, style: u16)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cell
impl<'de> Deserialize<'de> for Cell
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromWasmAbi for Cell
impl FromWasmAbi for Cell
Source§impl IntoWasmAbi for Cell
impl IntoWasmAbi for Cell
Source§impl LongRefFromWasmAbi for Cell
impl LongRefFromWasmAbi for Cell
Source§impl OptionFromWasmAbi for Cell
impl OptionFromWasmAbi for Cell
Source§impl OptionIntoWasmAbi for Cell
impl OptionIntoWasmAbi for Cell
Source§impl RefFromWasmAbi for Cell
impl RefFromWasmAbi for Cell
Source§impl RefMutFromWasmAbi for Cell
impl RefMutFromWasmAbi for Cell
Source§impl TryFromJsValue for Cell
impl TryFromJsValue for Cell
Source§impl VectorFromWasmAbi for Cell
impl VectorFromWasmAbi for Cell
Source§impl VectorIntoWasmAbi for Cell
impl VectorIntoWasmAbi for Cell
impl SupportsConstructor for Cell
impl SupportsInstanceProperty for Cell
impl SupportsStaticProperty for Cell
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnwindSafe for Cell
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
.