pub struct BitSetWrapper(pub BitSet);Expand description
Wrap a BitSet in a newtype so we can implement serde traits on it
(weirdly by delegating to its inner BitVec).
Tuple Fields§
§0: BitSetTrait Implementations§
Source§impl Clone for BitSetWrapper
impl Clone for BitSetWrapper
Source§fn clone(&self) -> BitSetWrapper
fn clone(&self) -> BitSetWrapper
Returns a duplicate 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 Debug for BitSetWrapper
impl Debug for BitSetWrapper
Source§impl Default for BitSetWrapper
impl Default for BitSetWrapper
Source§fn default() -> BitSetWrapper
fn default() -> BitSetWrapper
Returns the “default value” for a type. Read more
Source§impl<'a> Deserialize<'a> for BitSetWrapper
Available on crate features bits and serde only.
impl<'a> Deserialize<'a> for BitSetWrapper
Available on crate features
bits and serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for BitSetWrapper
impl Hash for BitSetWrapper
Source§impl Ord for BitSetWrapper
impl Ord for BitSetWrapper
Source§fn cmp(&self, other: &BitSetWrapper) -> Ordering
fn cmp(&self, other: &BitSetWrapper) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BitSetWrapper
impl PartialEq for BitSetWrapper
Source§impl PartialOrd for BitSetWrapper
impl PartialOrd for BitSetWrapper
Source§impl Serialize for BitSetWrapper
Available on crate features bits and serde only.
impl Serialize for BitSetWrapper
Available on crate features
bits and serde only.impl Eq for BitSetWrapper
impl StructuralPartialEq for BitSetWrapper
Auto Trait Implementations§
impl Freeze for BitSetWrapper
impl RefUnwindSafe for BitSetWrapper
impl Send for BitSetWrapper
impl Sync for BitSetWrapper
impl Unpin for BitSetWrapper
impl UnsafeUnpin for BitSetWrapper
impl UnwindSafe for BitSetWrapper
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