pub struct DavMethodSet(/* private fields */);Expand description
Compact, duplicate-free set of methods in canonical protocol order.
Implementations§
Source§impl DavMethodSet
impl DavMethodSet
pub const fn empty() -> Self
pub const fn from_methods(methods: &[DavMethod]) -> Self
pub const fn with(self, method: DavMethod) -> Self
pub const fn without(self, method: DavMethod) -> Self
pub const fn union(self, other: Self) -> Self
pub const fn contains(self, method: DavMethod) -> bool
pub const fn is_subset_of(self, other: Self) -> bool
pub const fn is_empty(self) -> bool
pub const fn iter(self) -> DavMethodSetIter ⓘ
pub fn render(self) -> String
Trait Implementations§
Source§impl Clone for DavMethodSet
impl Clone for DavMethodSet
Source§fn clone(&self) -> DavMethodSet
fn clone(&self) -> DavMethodSet
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 DavMethodSet
impl Debug for DavMethodSet
Source§impl Default for DavMethodSet
impl Default for DavMethodSet
Source§fn default() -> DavMethodSet
fn default() -> DavMethodSet
Returns the “default value” for a type. Read more
Source§impl PartialEq for DavMethodSet
impl PartialEq for DavMethodSet
impl Copy for DavMethodSet
impl Eq for DavMethodSet
impl StructuralPartialEq for DavMethodSet
Auto Trait Implementations§
impl Freeze for DavMethodSet
impl RefUnwindSafe for DavMethodSet
impl Send for DavMethodSet
impl Sync for DavMethodSet
impl Unpin for DavMethodSet
impl UnwindSafe for DavMethodSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.