pub struct LeavesMapInput {
pub leaves: BTreeMap<u64, Vec<Vec<u8>>>,
}
Fields§
§leaves: BTreeMap<u64, Vec<Vec<u8>>>
Implementations§
Source§impl LeavesMapInput
impl LeavesMapInput
pub fn new() -> LeavesMapInput
pub fn set_chain_leaves( &mut self, chain_id: u64, leaves: Leaves, ) -> Result<(), JsValue>
Trait Implementations§
Source§impl Default for LeavesMapInput
impl Default for LeavesMapInput
Source§impl From<LeavesMapInput> for JsValue
impl From<LeavesMapInput> for JsValue
Source§fn from(value: LeavesMapInput) -> Self
fn from(value: LeavesMapInput) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for LeavesMapInput
impl FromWasmAbi for LeavesMapInput
Source§impl IntoWasmAbi for LeavesMapInput
impl IntoWasmAbi for LeavesMapInput
Source§impl LongRefFromWasmAbi for LeavesMapInput
impl LongRefFromWasmAbi for LeavesMapInput
Source§impl OptionFromWasmAbi for LeavesMapInput
impl OptionFromWasmAbi for LeavesMapInput
Source§impl OptionIntoWasmAbi for LeavesMapInput
impl OptionIntoWasmAbi for LeavesMapInput
Source§impl RefFromWasmAbi for LeavesMapInput
impl RefFromWasmAbi for LeavesMapInput
Source§type Anchor = RcRef<LeavesMapInput>
type Anchor = RcRef<LeavesMapInput>
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 LeavesMapInput
impl RefMutFromWasmAbi for LeavesMapInput
Source§impl TryFromJsValue for LeavesMapInput
impl TryFromJsValue for LeavesMapInput
Source§impl VectorFromWasmAbi for LeavesMapInput
impl VectorFromWasmAbi for LeavesMapInput
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[LeavesMapInput]>
Source§impl VectorIntoJsValue for LeavesMapInput
impl VectorIntoJsValue for LeavesMapInput
fn vector_into_jsvalue(vector: Box<[LeavesMapInput]>) -> JsValue
Source§impl VectorIntoWasmAbi for LeavesMapInput
impl VectorIntoWasmAbi for LeavesMapInput
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[LeavesMapInput]>) -> Self::Abi
Source§impl WasmDescribeVector for LeavesMapInput
impl WasmDescribeVector for LeavesMapInput
impl SupportsConstructor for LeavesMapInput
impl SupportsInstanceProperty for LeavesMapInput
impl SupportsStaticProperty for LeavesMapInput
Auto Trait Implementations§
impl Freeze for LeavesMapInput
impl RefUnwindSafe for LeavesMapInput
impl Send for LeavesMapInput
impl Sync for LeavesMapInput
impl Unpin for LeavesMapInput
impl UnwindSafe for LeavesMapInput
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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
.