Struct progenitor_impl::TypePatch
pub struct TypePatch { /* private fields */ }
Expand description
Contains a set of modifications that may be applied to an existing type.
Implementations§
§impl TypeSpacePatch
impl TypeSpacePatch
pub fn with_rename<S>(&mut self, rename: S) -> &mut TypeSpacePatchwhere
S: ToString,
pub fn with_rename<S>(&mut self, rename: S) -> &mut TypeSpacePatchwhere S: ToString,
Specify the new name for patched type.
pub fn with_derive<S>(&mut self, derive: S) -> &mut TypeSpacePatchwhere
S: ToString,
pub fn with_derive<S>(&mut self, derive: S) -> &mut TypeSpacePatchwhere S: ToString,
Specify an additional derive to apply to the patched type.
Trait Implementations§
§impl Clone for TypeSpacePatch
impl Clone for TypeSpacePatch
§fn clone(&self) -> TypeSpacePatch
fn clone(&self) -> TypeSpacePatch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for TypeSpacePatch
impl Debug for TypeSpacePatch
§impl Default for TypeSpacePatch
impl Default for TypeSpacePatch
§fn default() -> TypeSpacePatch
fn default() -> TypeSpacePatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for TypeSpacePatch
impl Send for TypeSpacePatch
impl Sync for TypeSpacePatch
impl Unpin for TypeSpacePatch
impl UnwindSafe for TypeSpacePatch
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