pub struct UndoManager(/* private fields */);Implementations§
Source§impl YUndoManager
 
impl YUndoManager
pub fn new( doc: &YDoc, scope: JsValue, options: JsValue, ) -> Result<YUndoManager, JsValue>
pub fn add_to_scope(&mut self, ytypes: Array) -> Result<(), JsValue>
pub fn add_tracked_origin(&mut self, origin: JsValue)
pub fn remove_tracked_origin(&mut self, origin: JsValue)
pub fn clear(&mut self) -> Result<(), JsValue>
pub fn stop_capturing(&mut self)
pub fn undo(&mut self) -> Result<(), JsValue>
pub fn redo(&mut self) -> Result<(), JsValue>
pub fn can_undo(&mut self) -> bool
pub fn can_redo(&mut self) -> bool
pub fn on(&mut self, event: &str, callback: Function) -> Result<(), JsValue>
pub fn off(&mut self, event: &str, callback: Function) -> Result<bool, JsValue>
Trait Implementations§
Source§impl From<YUndoManager> for JsValue
 
impl From<YUndoManager> for JsValue
Source§fn from(value: YUndoManager) -> Self
 
fn from(value: YUndoManager) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for YUndoManager
 
impl FromWasmAbi for YUndoManager
Source§impl IntoWasmAbi for YUndoManager
 
impl IntoWasmAbi for YUndoManager
Source§impl LongRefFromWasmAbi for YUndoManager
 
impl LongRefFromWasmAbi for YUndoManager
Source§impl OptionFromWasmAbi for YUndoManager
 
impl OptionFromWasmAbi for YUndoManager
Source§impl OptionIntoWasmAbi for YUndoManager
 
impl OptionIntoWasmAbi for YUndoManager
Source§impl RefFromWasmAbi for YUndoManager
 
impl RefFromWasmAbi for YUndoManager
Source§type Anchor = RcRef<YUndoManager>
 
type Anchor = RcRef<YUndoManager>
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 YUndoManager
 
impl RefMutFromWasmAbi for YUndoManager
Source§impl TryFromJsValue for YUndoManager
 
impl TryFromJsValue for YUndoManager
Source§impl VectorFromWasmAbi for YUndoManager
 
impl VectorFromWasmAbi for YUndoManager
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[YUndoManager]>
Source§impl VectorIntoJsValue for YUndoManager
 
impl VectorIntoJsValue for YUndoManager
fn vector_into_jsvalue(vector: Box<[YUndoManager]>) -> JsValue
Source§impl VectorIntoWasmAbi for YUndoManager
 
impl VectorIntoWasmAbi for YUndoManager
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[YUndoManager]>) -> Self::Abi
Source§impl WasmDescribeVector for YUndoManager
 
impl WasmDescribeVector for YUndoManager
impl SupportsConstructor for YUndoManager
impl SupportsInstanceProperty for YUndoManager
impl SupportsStaticProperty for YUndoManager
Auto Trait Implementations§
impl Freeze for YUndoManager
impl !RefUnwindSafe for YUndoManager
impl !Send for YUndoManager
impl !Sync for YUndoManager
impl Unpin for YUndoManager
impl !UnwindSafe for YUndoManager
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::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.