[−][src]Enum terminus_store::layer::PossiblyResolved
Either a resolved id or an unresolved inner type.
Variants
Resolved(u64)
Implementations
impl<T: Clone + PartialEq + Eq + PartialOrd + Ord + Hash> PossiblyResolved<T>
[src]
pub fn is_resolved(&self) -> bool
[src]
Returns true if this is a resolved id, and false otherwise.
pub fn as_ref(&self) -> PossiblyResolved<&T>
[src]
Return a PossiblyResolved with the inner value as a reference.
pub fn unwrap_unresolved(self) -> T
[src]
Unwrap to the unresolved inner value, or panic if this was actually a resolved id.
pub fn unwrap_resolved(self) -> u64
[src]
Unwrap to the resolved id, or panic if this was actually an unresolved value.
Trait Implementations
impl<T: Clone + PartialEq + Eq + PartialOrd + Ord + Hash> Clone for PossiblyResolved<T>
[src]
fn clone(&self) -> PossiblyResolved<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug + Clone + PartialEq + Eq + PartialOrd + Ord + Hash> Debug for PossiblyResolved<T>
[src]
impl<T: Eq + Clone + PartialEq + PartialOrd + Ord + Hash> Eq for PossiblyResolved<T>
[src]
impl<T: Hash + Clone + PartialEq + Eq + PartialOrd + Ord> Hash for PossiblyResolved<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: Ord + Clone + PartialEq + Eq + PartialOrd + Hash> Ord for PossiblyResolved<T>
[src]
fn cmp(&self, other: &PossiblyResolved<T>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: PartialEq + Clone + Eq + PartialOrd + Ord + Hash> PartialEq<PossiblyResolved<T>> for PossiblyResolved<T>
[src]
fn eq(&self, other: &PossiblyResolved<T>) -> bool
[src]
fn ne(&self, other: &PossiblyResolved<T>) -> bool
[src]
impl<T: PartialOrd + Clone + PartialEq + Eq + Ord + Hash> PartialOrd<PossiblyResolved<T>> for PossiblyResolved<T>
[src]
fn partial_cmp(&self, other: &PossiblyResolved<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &PossiblyResolved<T>) -> bool
[src]
fn le(&self, other: &PossiblyResolved<T>) -> bool
[src]
fn gt(&self, other: &PossiblyResolved<T>) -> bool
[src]
fn ge(&self, other: &PossiblyResolved<T>) -> bool
[src]
impl<T: Clone + PartialEq + Eq + PartialOrd + Ord + Hash> StructuralEq for PossiblyResolved<T>
[src]
impl<T: Clone + PartialEq + Eq + PartialOrd + Ord + Hash> StructuralPartialEq for PossiblyResolved<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for PossiblyResolved<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for PossiblyResolved<T> where
T: Send,
T: Send,
impl<T> Sync for PossiblyResolved<T> where
T: Sync,
T: Sync,
impl<T> Unpin for PossiblyResolved<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for PossiblyResolved<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,