pub enum Inheritable<T> {
Set(T),
Inherited {
workspace: bool,
},
}
Expand description
Placeholder for a property that may be missing from its package, and needs to be copied from a Workspace
.
Variants§
Implementations§
Source§impl<T> Inheritable<T>
impl<T> Inheritable<T>
Source§impl<T> Inheritable<Vec<T>>
impl<T> Inheritable<Vec<T>>
Source§impl<T: Default + PartialEq> Inheritable<T>
impl<T: Default + PartialEq> Inheritable<T>
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
False if inherited and unknown
Trait Implementations§
Source§impl<T: Clone> Clone for Inheritable<T>
impl<T: Clone> Clone for Inheritable<T>
Source§fn clone(&self) -> Inheritable<T>
fn clone(&self) -> Inheritable<T>
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<T: Debug> Debug for Inheritable<T>
impl<T: Debug> Debug for Inheritable<T>
Source§impl<T: Default> Default for Inheritable<T>
impl<T: Default> Default for Inheritable<T>
Source§impl<'de, T> Deserialize<'de> for Inheritable<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Inheritable<T>where
T: Deserialize<'de>,
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<T> From<Inheritable<T>> for Option<T>
impl<T> From<Inheritable<T>> for Option<T>
Source§fn from(val: Inheritable<T>) -> Self
fn from(val: Inheritable<T>) -> Self
None
if inherited
Source§impl<T> From<Option<T>> for Inheritable<T>
impl<T> From<Option<T>> for Inheritable<T>
Source§impl<T: PartialEq> PartialEq for Inheritable<T>
impl<T: PartialEq> PartialEq for Inheritable<T>
Source§impl<T> Serialize for Inheritable<T>where
T: Serialize,
impl<T> Serialize for Inheritable<T>where
T: Serialize,
impl<T: Copy> Copy for Inheritable<T>
impl<T: Eq> Eq for Inheritable<T>
impl<T> StructuralPartialEq for Inheritable<T>
Auto Trait Implementations§
impl<T> Freeze for Inheritable<T>where
T: Freeze,
impl<T> RefUnwindSafe for Inheritable<T>where
T: RefUnwindSafe,
impl<T> Send for Inheritable<T>where
T: Send,
impl<T> Sync for Inheritable<T>where
T: Sync,
impl<T> Unpin for Inheritable<T>where
T: Unpin,
impl<T> UnwindSafe for Inheritable<T>where
T: UnwindSafe,
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.