pub enum PurposeSource {
Missing,
Imported,
Generated,
Agent,
}Expand description
Source for purpose metadata.
Variants§
Missing
No source is known yet.
Imported
Imported from legacy metadata such as .purpose or Purpose headers.
Generated
Generated by a heuristic.
Agent
Explicitly set by an agent after inspecting enough context.
Implementations§
Trait Implementations§
Source§impl Clone for PurposeSource
impl Clone for PurposeSource
Source§fn clone(&self) -> PurposeSource
fn clone(&self) -> PurposeSource
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 PurposeSource
impl Debug for PurposeSource
Source§impl<'de> Deserialize<'de> for PurposeSource
impl<'de> Deserialize<'de> for PurposeSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PurposeSource
impl Display for PurposeSource
Source§impl PartialEq for PurposeSource
impl PartialEq for PurposeSource
Source§impl Serialize for PurposeSource
impl Serialize for PurposeSource
impl Copy for PurposeSource
impl Eq for PurposeSource
impl StructuralPartialEq for PurposeSource
Auto Trait Implementations§
impl Freeze for PurposeSource
impl RefUnwindSafe for PurposeSource
impl Send for PurposeSource
impl Sync for PurposeSource
impl Unpin for PurposeSource
impl UnwindSafe for PurposeSource
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.