pub struct Repo { /* private fields */ }
Implementations§
Source§impl Repo
impl Repo
pub fn new() -> Repo
pub fn commit(&mut self, new_input: &str)
pub fn apply_patch(&mut self, patch_id: &str)
pub fn unapply_patch(&mut self, patch_id: &str)
pub fn apply_changes(&mut self, changes: &Changes)
pub fn file(&self) -> Option<String>
pub fn patches(&self) -> Patches
pub fn graggle(&self) -> Graggle
Trait Implementations§
Source§impl FromWasmAbi for Repo
impl FromWasmAbi for Repo
Source§impl IntoWasmAbi for Repo
impl IntoWasmAbi for Repo
Source§impl LongRefFromWasmAbi for Repo
impl LongRefFromWasmAbi for Repo
Source§impl OptionFromWasmAbi for Repo
impl OptionFromWasmAbi for Repo
Source§impl OptionIntoWasmAbi for Repo
impl OptionIntoWasmAbi for Repo
Source§impl RefFromWasmAbi for Repo
impl RefFromWasmAbi for Repo
Source§impl RefMutFromWasmAbi for Repo
impl RefMutFromWasmAbi for Repo
Source§impl TryFromJsValue for Repo
impl TryFromJsValue for Repo
Source§impl VectorFromWasmAbi for Repo
impl VectorFromWasmAbi for Repo
Source§impl VectorIntoWasmAbi for Repo
impl VectorIntoWasmAbi for Repo
impl SupportsConstructor for Repo
impl SupportsInstanceProperty for Repo
impl SupportsStaticProperty for Repo
Auto Trait Implementations§
impl Freeze for Repo
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl UnwindSafe for Repo
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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
.