#[non_exhaustive]pub enum PackageSource {
Installed,
Host,
}Expand description
Where a package comes from, as the engine’s registry of packages knows
it — unlike its name, which the package’s own plugin.toml gives.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Installed
plugin.install: anyone who can install a package, under any name.
Host
One of the embedding host’s own packages, from a directory it named.
Trait Implementations§
Source§impl Clone for PackageSource
impl Clone for PackageSource
impl Copy for PackageSource
Source§impl Debug for PackageSource
impl Debug for PackageSource
Source§impl Default for PackageSource
impl Default for PackageSource
impl Eq for PackageSource
Source§impl PartialEq for PackageSource
impl PartialEq for PackageSource
impl StructuralPartialEq for PackageSource
Auto Trait Implementations§
impl Forget for PackageSource
impl Freeze for PackageSource
impl Move for PackageSource
impl RefUnwindSafe for PackageSource
impl Send for PackageSource
impl Sync for PackageSource
impl Unpin for PackageSource
impl UnsafeUnpin for PackageSource
impl UnwindSafe for PackageSource
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