pub struct Definition {
pub key: Key,
pub origin: Option<Type>,
pub scope: Scope,
pub color: Option<Color>,
pub conditional: bool,
}
Expand description
Represents a definition of a provider.
Fields§
§key: Key
The unique key of the provider.
origin: Option<Type>
The origin type of the provider.
When the following methods are called, current definition represents the return type of the method, and this field represents the parameter type of the method:
scope: Scope
The scope of the provider.
color: Option<Color>
The color of the constructor.
conditional: bool
Whether the provider is conditional.
Trait Implementations§
Source§impl Clone for Definition
impl Clone for Definition
Source§fn clone(&self) -> Definition
fn clone(&self) -> Definition
Returns a copy 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 Definition
impl Debug for Definition
Source§impl Ord for Definition
impl Ord for Definition
Source§fn cmp(&self, other: &Definition) -> Ordering
fn cmp(&self, other: &Definition) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Definition
impl PartialEq for Definition
Source§impl PartialOrd for Definition
impl PartialOrd for Definition
impl Eq for Definition
impl StructuralPartialEq for Definition
Auto Trait Implementations§
impl Freeze for Definition
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnwindSafe for Definition
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