Struct cml_core_wasm::Int 
source · pub struct Int(/* private fields */);Implementations§
source§impl Int
 
impl Int
pub fn to_cbor_bytes(&self) -> Vec<u8>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<Int, JsValue>
pub fn to_json(&self) -> Result<String, JsValue>
pub fn to_json_value(&self) -> Result<JsValue, JsValue>
pub fn from_json(json: &str) -> Result<Int, JsValue>
pub fn new(x: i64) -> Self
pub fn to_str(&self) -> String
pub fn from_str(string: &str) -> Result<Int, JsValue>
Trait Implementations§
source§impl FromWasmAbi for Int
 
impl FromWasmAbi for Int
source§impl IntoWasmAbi for Int
 
impl IntoWasmAbi for Int
source§impl OptionFromWasmAbi for Int
 
impl OptionFromWasmAbi for Int
source§impl OptionIntoWasmAbi for Int
 
impl OptionIntoWasmAbi for Int
source§impl RefFromWasmAbi for Int
 
impl RefFromWasmAbi for Int
source§impl RefMutFromWasmAbi for Int
 
impl RefMutFromWasmAbi for Int
Auto Trait Implementations§
impl RefUnwindSafe for Int
impl Send for Int
impl Sync for Int
impl Unpin for Int
impl UnwindSafe for Int
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,
§type Abi = <T as IntoWasmAbi>::Abi
 
type Abi = <T as IntoWasmAbi>::Abi
Same as 
IntoWasmAbi::Abisource§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.