pub struct FieldSet(/* private fields */);Expand description
A set of Fields. Serialises as a list of field names.
Implementations§
Source§impl FieldSet
impl FieldSet
pub const EMPTY: FieldSet
pub const ALL: FieldSet
pub const fn of(fields: &[Field]) -> FieldSet
pub const fn contains(self, field: Field) -> bool
pub const fn is_subset(self, other: FieldSet) -> bool
pub const fn union(self, other: FieldSet) -> FieldSet
pub const fn difference(self, other: FieldSet) -> FieldSet
pub const fn intersection(self, other: FieldSet) -> FieldSet
pub const fn with(self, field: Field) -> FieldSet
pub const fn is_empty(self) -> bool
pub fn iter(self) -> impl Iterator<Item = Field>
Trait Implementations§
impl Copy for FieldSet
Source§impl<'de> Deserialize<'de> for FieldSet
impl<'de> Deserialize<'de> for FieldSet
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FieldSet
Source§impl FromIterator<Field> for FieldSet
impl FromIterator<Field> for FieldSet
impl StructuralPartialEq for FieldSet
Auto Trait Implementations§
impl Forget for FieldSet
impl Freeze for FieldSet
impl RefUnwindSafe for FieldSet
impl Send for FieldSet
impl Sync for FieldSet
impl Unpin for FieldSet
impl UnsafeUnpin for FieldSet
impl UnwindSafe for FieldSet
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