Override

Struct Override 

Source
pub struct Override<S> { /* private fields */ }

Implementations§

Source§

impl<S: AsRef<str>> Override<S>

Source

pub fn into_parts(self) -> (S, Ext<Manifest<S>>)

Source

pub fn as_parts(&self) -> (&S, &Ext<Manifest<S>>)

Source§

impl<S> Override<S>
where S: ToOwned,

Source

pub fn clone_owned(&self) -> Override<<S as ToOwned>::Owned>

Trait Implementations§

Source§

impl<S: Clone> Clone for Override<S>

Source§

fn clone(&self) -> Override<S>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'t, T> Cob<'t> for Override<T>
where T: Cob<'t>,

Source§

type Output = Override<<T as Cob<'t>>::Output>

Source§

fn as_borrow(&'t self) -> Self::Output

Source§

impl<S: Debug> Debug for Override<S>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, S> Deserialize<'de> for Override<S>
where S: Deserialize<'de>,

Source§

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<S> ManifestSourceOpt for Override<S>

Source§

const MAY_BE_INCOMPLETE: bool = Manifest<S>::MAY_BE_INCOMPLETE

Possibly incomplete, that means that some of values could be None.
Source§

fn name(&self) -> Option<&str>

Source§

fn version(&self) -> Option<&str>

Source§

fn author(&self) -> Option<&str>

Source§

fn bundle_id(&self) -> Option<&str>

Source§

fn description(&self) -> Option<&str>

Source§

fn image_path(&self) -> Option<&str>

Source§

fn launch_sound_path(&self) -> Option<&str>

Source§

fn content_warning(&self) -> Option<&str>

Source§

fn content_warning2(&self) -> Option<&str>

Source§

fn build_number(&self) -> Option<usize>

Source§

fn override_with<'a, Over>( &'a self, over: &'a Over, ) -> impl ManifestSourceOpt + 'a
where Over: ManifestSourceOpt,

Source§

impl<S> ManifestSourceOptExt for Override<S>

Source§

const MAY_HAVE_EXTRA: bool = true

Source§

fn iter_extra( &self, ) -> Option<impl IntoIterator<Item = (impl AsRef<str>, impl AsRef<ExtraValue>)>>

Source§

fn has_extra(&self) -> bool

Source§

fn override_with_extra_ref<'t, Over>( &'t self, over: &'t Over, ) -> impl ManifestSourceOptExt + 't

Source§

fn override_with_extra<Over: ManifestSourceOptExt>( &self, overrider: &Over, ) -> impl ManifestSourceOptExt + Cob<'static>

Source§

impl<S: PartialEq> PartialEq for Override<S>

Source§

fn eq(&self, other: &Override<S>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<S: AsRef<str>> TargetId for Override<S>

Source§

fn target(&self) -> &str

Source§

impl<S> StructuralPartialEq for Override<S>

Auto Trait Implementations§

§

impl<S> Freeze for Override<S>
where S: Freeze,

§

impl<S> RefUnwindSafe for Override<S>
where S: RefUnwindSafe,

§

impl<S> Send for Override<S>
where S: Send,

§

impl<S> Sync for Override<S>
where S: Sync,

§

impl<S> Unpin for Override<S>
where S: Unpin,

§

impl<S> UnwindSafe for Override<S>
where S: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoManifest for T

Source§

impl<T> ManifestFmt for T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Validate for T

Source§

fn validate(&self) -> impl IntoIterator<Item = Problem>

Check critical requirements, returns it as errors. Also returns warnings fo not so critical problems. Use it before render the final result.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,