pub struct ModelSurgery { /* private fields */ }
Expand description
Model surgery utilities for architectural changes
Implementations§
Source§impl ModelSurgery
impl ModelSurgery
Sourcepub fn add_operation(&mut self, operation: SurgeryOperation)
pub fn add_operation(&mut self, operation: SurgeryOperation)
Add a surgery operation
Sourcepub fn apply_surgery(
&self,
model_config: &mut ModelConfig,
) -> Result<Vec<String>>
pub fn apply_surgery( &self, model_config: &mut ModelConfig, ) -> Result<Vec<String>>
Apply all surgery operations
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelSurgery
impl RefUnwindSafe for ModelSurgery
impl Send for ModelSurgery
impl Sync for ModelSurgery
impl Unpin for ModelSurgery
impl UnwindSafe for ModelSurgery
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 more