pub enum DartAnnotation {
Override,
Deprecated,
VisibleForTesting,
Immutable,
Sealed,
Custom(String, Vec<String>),
}Expand description
A Dart annotation (metadata).
Variants§
Override
@override
Deprecated
@deprecated
VisibleForTesting
@visibleForTesting
Immutable
@immutable
Sealed
@sealed
Custom(String, Vec<String>)
Custom annotation with optional arguments.
Trait Implementations§
Source§impl Clone for DartAnnotation
impl Clone for DartAnnotation
Source§fn clone(&self) -> DartAnnotation
fn clone(&self) -> DartAnnotation
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 DartAnnotation
impl Debug for DartAnnotation
Auto Trait Implementations§
impl Freeze for DartAnnotation
impl RefUnwindSafe for DartAnnotation
impl Send for DartAnnotation
impl Sync for DartAnnotation
impl Unpin for DartAnnotation
impl UnsafeUnpin for DartAnnotation
impl UnwindSafe for DartAnnotation
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