pub enum WriteBehavior {
CurrentName,
NewName(&'static str),
BothNames(&'static str),
}Expand description
Under which names an attribute should be saved.
Variants§
CurrentName
Save the attribute under its current name.
This is the only choice for attributes that aren’t deprecated.
NewName(&'static str)
Save the attribute under its replacement name instead.
BothNames(&'static str)
Save the attribute under both its current name and its replacement name.
Trait Implementations§
Source§impl Clone for WriteBehavior
impl Clone for WriteBehavior
Source§fn clone(&self) -> WriteBehavior
fn clone(&self) -> WriteBehavior
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 WriteBehavior
impl Debug for WriteBehavior
impl Copy for WriteBehavior
Auto Trait Implementations§
impl Freeze for WriteBehavior
impl RefUnwindSafe for WriteBehavior
impl Send for WriteBehavior
impl Sync for WriteBehavior
impl Unpin for WriteBehavior
impl UnwindSafe for WriteBehavior
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