Struct ywasm::YXmlTextEvent
source · [−]pub struct YXmlTextEvent { /* private fields */ }
Expand description
Event generated by YXmlText.observe
method. Emitted during transaction commit phase.
Implementations
sourceimpl YXmlTextEvent
impl YXmlTextEvent
sourcepub fn target(&mut self) -> JsValue
pub fn target(&mut self) -> JsValue
Returns a current shared type instance, that current event changes refer to.
sourcepub fn path(&self) -> JsValue
pub fn path(&self) -> JsValue
Returns an array of keys and indexes creating a path from root type down to current instance
of shared type (accessible via target
getter).
Trait Implementations
sourceimpl From<YXmlTextEvent> for JsValue
impl From<YXmlTextEvent> for JsValue
sourcefn from(value: YXmlTextEvent) -> Self
fn from(value: YXmlTextEvent) -> Self
Converts to this type from the input type.
sourceimpl FromWasmAbi for YXmlTextEvent
impl FromWasmAbi for YXmlTextEvent
sourceimpl IntoWasmAbi for YXmlTextEvent
impl IntoWasmAbi for YXmlTextEvent
sourceimpl OptionFromWasmAbi for YXmlTextEvent
impl OptionFromWasmAbi for YXmlTextEvent
sourceimpl OptionIntoWasmAbi for YXmlTextEvent
impl OptionIntoWasmAbi for YXmlTextEvent
sourceimpl RefFromWasmAbi for YXmlTextEvent
impl RefFromWasmAbi for YXmlTextEvent
type Anchor = Ref<'static, YXmlTextEvent>
type Anchor = Ref<'static, YXmlTextEvent>
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. Read more
sourceunsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
Recover a Self::Anchor
from Self::Abi
. Read more
sourceimpl RefMutFromWasmAbi for YXmlTextEvent
impl RefMutFromWasmAbi for YXmlTextEvent
type Anchor = RefMut<'static, YXmlTextEvent>
type Anchor = RefMut<'static, YXmlTextEvent>
Same as RefFromWasmAbi::Anchor
sourceunsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as RefFromWasmAbi::ref_from_abi
sourceimpl WasmDescribe for YXmlTextEvent
impl WasmDescribe for YXmlTextEvent
Auto Trait Implementations
impl !RefUnwindSafe for YXmlTextEvent
impl !Send for YXmlTextEvent
impl !Sync for YXmlTextEvent
impl Unpin for YXmlTextEvent
impl !UnwindSafe for YXmlTextEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn 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
. Read more