pub enum Modifier {
Show 23 variants
Public,
Private,
Internal,
Static,
Const,
Readonly,
Async,
Server,
Client,
Shared,
Saved,
Synced,
Tune,
Protected,
Abstract,
Virtual,
Override,
Sealed,
Ref,
Extern,
Partial,
Required,
New,
}Expand description
What a declaration is marked with.
Variants§
Public
Private
Internal
Static
Const
Readonly
Async
Server
Client
Saved
Synced
Tune
Protected
Abstract
Virtual
Override
Sealed
Ref
ref struct: holds borrows, never on the heap.
Extern
Its body is elsewhere: a [Service] method’s, on the bus.
Partial
Its body is generated: a [LoggerMessage] method’s.
Required
required: a new of its type sets it (in its initializer), unless
the constructor called is [SetsRequiredMembers].
New
new: hides a member of its name it inherits (new bool Add(T item)).
Trait Implementations§
impl Copy for Modifier
impl Eq for Modifier
impl StructuralPartialEq for Modifier
Auto Trait Implementations§
impl Freeze for Modifier
impl RefUnwindSafe for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl UnsafeUnpin for Modifier
impl UnwindSafe for Modifier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.