pub enum PropertyKind {
List(ListPropertyKind),
Scalar(ScalarPropertyKind),
}
Expand description
Property kind variants.
Variants§
Implementations§
source§impl PropertyKind
impl PropertyKind
source§impl PropertyKind
impl PropertyKind
sourcepub fn try_unwrap_list(
self,
) -> Result<ListPropertyKind, TryUnwrapError<PropertyKind>>
pub fn try_unwrap_list( self, ) -> Result<ListPropertyKind, TryUnwrapError<PropertyKind>>
Attempts to unwrap this value to the PropertyKind::List
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_list_ref(
&self,
) -> Result<&ListPropertyKind, TryUnwrapError<&PropertyKind>>
pub fn try_unwrap_list_ref( &self, ) -> Result<&ListPropertyKind, TryUnwrapError<&PropertyKind>>
Attempts to unwrap this reference to the PropertyKind::List
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_list_mut(
&mut self,
) -> Result<&mut ListPropertyKind, TryUnwrapError<&mut PropertyKind>>
pub fn try_unwrap_list_mut( &mut self, ) -> Result<&mut ListPropertyKind, TryUnwrapError<&mut PropertyKind>>
Attempts to unwrap this mutable reference to the PropertyKind::List
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_scalar(
self,
) -> Result<ScalarPropertyKind, TryUnwrapError<PropertyKind>>
pub fn try_unwrap_scalar( self, ) -> Result<ScalarPropertyKind, TryUnwrapError<PropertyKind>>
Attempts to unwrap this value to the PropertyKind::Scalar
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_scalar_ref(
&self,
) -> Result<&ScalarPropertyKind, TryUnwrapError<&PropertyKind>>
pub fn try_unwrap_scalar_ref( &self, ) -> Result<&ScalarPropertyKind, TryUnwrapError<&PropertyKind>>
Attempts to unwrap this reference to the PropertyKind::Scalar
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_scalar_mut(
&mut self,
) -> Result<&mut ScalarPropertyKind, TryUnwrapError<&mut PropertyKind>>
pub fn try_unwrap_scalar_mut( &mut self, ) -> Result<&mut ScalarPropertyKind, TryUnwrapError<&mut PropertyKind>>
Attempts to unwrap this mutable reference to the PropertyKind::Scalar
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Trait Implementations§
source§impl AsRef<PropertyKind> for Property
impl AsRef<PropertyKind> for Property
source§fn as_ref(&self) -> &PropertyKind
fn as_ref(&self) -> &PropertyKind
source§impl Clone for PropertyKind
impl Clone for PropertyKind
source§fn clone(&self) -> PropertyKind
fn clone(&self) -> PropertyKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PropertyKind
impl Debug for PropertyKind
source§impl Default for PropertyKind
impl Default for PropertyKind
source§fn default() -> PropertyKind
fn default() -> PropertyKind
source§impl Display for PropertyKind
impl Display for PropertyKind
source§impl From<ListPropertyKind> for PropertyKind
impl From<ListPropertyKind> for PropertyKind
source§fn from(value: ListPropertyKind) -> PropertyKind
fn from(value: ListPropertyKind) -> PropertyKind
source§impl From<ScalarPropertyKind> for PropertyKind
impl From<ScalarPropertyKind> for PropertyKind
source§fn from(value: ScalarPropertyKind) -> PropertyKind
fn from(value: ScalarPropertyKind) -> PropertyKind
source§impl Hash for PropertyKind
impl Hash for PropertyKind
source§impl PartialEq for PropertyKind
impl PartialEq for PropertyKind
impl Eq for PropertyKind
impl StructuralPartialEq for PropertyKind
Auto Trait Implementations§
impl Freeze for PropertyKind
impl RefUnwindSafe for PropertyKind
impl Send for PropertyKind
impl Sync for PropertyKind
impl Unpin for PropertyKind
impl UnwindSafe for PropertyKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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