pub enum FormatSource {
BuiltIn,
Embedded,
Repo,
File(String),
Schema(String),
Pack(String),
}Expand description
Where a registry entry comes from.
Variants§
BuiltIn
Defined by the tool itself: the built-in types.
Embedded
The tool’s embedded formats.
Repo
The host’s layer, as a formats file the host reads.
File(String)
A formats file that the caller names, by its path as the caller spells it.
Schema(String)
A schema’s formats, by schema id.
Pack(String)
A formats file of the pack layer, by the name of its pack.
Implementations§
Trait Implementations§
Source§impl Clone for FormatSource
impl Clone for FormatSource
Source§fn clone(&self) -> FormatSource
fn clone(&self) -> FormatSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FormatSource
impl Debug for FormatSource
impl Eq for FormatSource
Source§impl PartialEq for FormatSource
impl PartialEq for FormatSource
impl StructuralPartialEq for FormatSource
Auto Trait Implementations§
impl Forget for FormatSource
impl Freeze for FormatSource
impl Move for FormatSource
impl RefUnwindSafe for FormatSource
impl Send for FormatSource
impl Sync for FormatSource
impl Unpin for FormatSource
impl UnsafeUnpin for FormatSource
impl UnwindSafe for FormatSource
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.