Skip to main content

InspectTypeRenameable

Trait InspectTypeRenameable 

Source
pub trait InspectTypeRenameable: InspectTypeInternal {
    // Required method
    fn rename<'a>(&self, name: impl Into<Cow<'a, str>>) -> Result<(), Error>;
}
Expand description

Trait allowing an Inspect type to be renamed.

This trait is not implementable by external types.

Required Methods§

Source

fn rename<'a>(&self, name: impl Into<Cow<'a, str>>) -> Result<(), Error>

Rename this inspect node or property.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§