alloc/collections/btree/
set_val.rs1#[derive(#[automatically_derived]
impl ::core::fmt::Debug for SetValZST {
#[inline]
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
::core::fmt::Formatter::write_str(f, "SetValZST")
}
}Debug, #[automatically_derived]
impl ::core::cmp::Eq for SetValZST {
#[inline]
#[doc(hidden)]
#[coverage(off)]
fn assert_fields_are_eq(&self) {}
}Eq, #[automatically_derived]
impl ::core::cmp::PartialEq for SetValZST {
#[inline]
fn eq(&self, other: &SetValZST) -> bool { true }
}PartialEq, #[automatically_derived]
impl ::core::cmp::Ord for SetValZST {
#[inline]
fn cmp(&self, other: &SetValZST) -> ::core::cmp::Ordering {
::core::cmp::Ordering::Equal
}
}Ord, #[automatically_derived]
impl ::core::cmp::PartialOrd for SetValZST {
#[inline]
fn partial_cmp(&self, other: &SetValZST)
-> ::core::option::Option<::core::cmp::Ordering> {
::core::option::Option::Some(::core::cmp::Ordering::Equal)
}
}PartialOrd, #[automatically_derived]
impl ::core::hash::Hash for SetValZST {
#[inline]
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) {}
}Hash, #[automatically_derived]
impl ::core::clone::Clone for SetValZST {
#[inline]
fn clone(&self) -> SetValZST { SetValZST }
}Clone, #[automatically_derived]
impl ::core::default::Default for SetValZST {
#[inline]
fn default() -> SetValZST { SetValZST {} }
}Default)]
6pub(super) struct SetValZST;
7
8pub(super) trait IsSetVal {
14 fn is_set_val() -> bool;
15}
16
17impl<V> IsSetVal for V {
19 default fn is_set_val() -> bool {
20 false
21 }
22}
23
24impl IsSetVal for SetValZST {
26 fn is_set_val() -> bool {
27 true
28 }
29}