pub struct TypeSpacePatch { /* private fields */ }
Expand description
Contains a set of modifications that may be applied to an existing type.
Implementations§
source§impl TypeSpacePatch
impl TypeSpacePatch
sourcepub fn with_rename<S: ToString>(&mut self, rename: S) -> &mut Self
pub fn with_rename<S: ToString>(&mut self, rename: S) -> &mut Self
Specify the new name for patched type.
sourcepub fn with_derive<S: ToString>(&mut self, derive: S) -> &mut Self
pub fn with_derive<S: ToString>(&mut self, derive: S) -> &mut Self
Specify an additional derive to apply to the patched type.
Trait Implementations§
source§impl Clone for TypeSpacePatch
impl Clone for TypeSpacePatch
source§fn clone(&self) -> TypeSpacePatch
fn clone(&self) -> TypeSpacePatch
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TypeSpacePatch
impl Debug for TypeSpacePatch
source§impl Default for TypeSpacePatch
impl Default for TypeSpacePatch
source§fn default() -> TypeSpacePatch
fn default() -> TypeSpacePatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TypeSpacePatch
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)