pub enum ReplacementName {
Static(&'static str),
Dynamic(fn(&str) -> String),
}Expand description
The name of the replacement of a deprecated attribute.
Variants§
Static(&'static str)
The replacement attribute has a fixed name, i.e., doesn’t contain a placeholder.
Dynamic(fn(&str) -> String)
The replacement attribute contains a placeholder.
This means its name can’t be used “as-is”; a value has to be inserted into the placeholder. The contained function performs this insertion.
Trait Implementations§
Source§impl Clone for ReplacementName
impl Clone for ReplacementName
Source§fn clone(&self) -> ReplacementName
fn clone(&self) -> ReplacementName
Returns a duplicate 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 moreSource§impl Debug for ReplacementName
impl Debug for ReplacementName
impl Copy for ReplacementName
Auto Trait Implementations§
impl Freeze for ReplacementName
impl RefUnwindSafe for ReplacementName
impl Send for ReplacementName
impl Sync for ReplacementName
impl Unpin for ReplacementName
impl UnsafeUnpin for ReplacementName
impl UnwindSafe for ReplacementName
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