pub(crate) enum UpgradeBehaviour {
Unit,
Panic,
Default,
Expression(Expr),
Closure(ExprClosure),
}
Variants§
Implementations§
source§impl UpgradeBehaviour
impl UpgradeBehaviour
pub(crate) fn maybe_parse( attrs: &[Attribute], input: ParseStream<'_>, ) -> Result<Option<Self>>
Trait Implementations§
source§impl Default for UpgradeBehaviour
impl Default for UpgradeBehaviour
source§fn default() -> UpgradeBehaviour
fn default() -> UpgradeBehaviour
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpgradeBehaviour
impl RefUnwindSafe for UpgradeBehaviour
impl !Send for UpgradeBehaviour
impl !Sync for UpgradeBehaviour
impl Unpin for UpgradeBehaviour
impl UnwindSafe for UpgradeBehaviour
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