pub struct BindingCapacity { /* private fields */ }Expand description
Positive maximum number of retained key bindings.
Implementations§
Source§impl BindingCapacity
impl BindingCapacity
Sourcepub fn new(maximum: usize) -> Result<Self, ZeroCapacity>
pub fn new(maximum: usize) -> Result<Self, ZeroCapacity>
Validate the maximum number of retained bindings.
§Errors
Returns ZeroCapacity when maximum is zero.
Trait Implementations§
Source§impl Clone for BindingCapacity
impl Clone for BindingCapacity
Source§fn clone(&self) -> BindingCapacity
fn clone(&self) -> BindingCapacity
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 BindingCapacity
impl Debug for BindingCapacity
Source§impl PartialEq for BindingCapacity
impl PartialEq for BindingCapacity
impl Copy for BindingCapacity
impl Eq for BindingCapacity
impl StructuralPartialEq for BindingCapacity
Auto Trait Implementations§
impl Freeze for BindingCapacity
impl RefUnwindSafe for BindingCapacity
impl Send for BindingCapacity
impl Sync for BindingCapacity
impl Unpin for BindingCapacity
impl UnsafeUnpin for BindingCapacity
impl UnwindSafe for BindingCapacity
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