pub enum WriteConstraint {
WriteAsRead(bool),
UseEnumeratedValues(bool),
Range(WriteConstraintRange),
}
Expand description
Define constraints for writing values to a field
Variants§
WriteAsRead(bool)
If true
, only the last read value can be written.
UseEnumeratedValues(bool)
If true
, only the values listed in the enumeratedValues list can be written.
Range(WriteConstraintRange)
A range of numbers that can be written.
Trait Implementations§
Source§impl Clone for WriteConstraint
impl Clone for WriteConstraint
Source§fn clone(&self) -> WriteConstraint
fn clone(&self) -> WriteConstraint
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WriteConstraint
impl Debug for WriteConstraint
Source§impl PartialEq for WriteConstraint
impl PartialEq for WriteConstraint
impl Copy for WriteConstraint
impl Eq for WriteConstraint
impl StructuralPartialEq for WriteConstraint
Auto Trait Implementations§
impl Freeze for WriteConstraint
impl RefUnwindSafe for WriteConstraint
impl Send for WriteConstraint
impl Sync for WriteConstraint
impl Unpin for WriteConstraint
impl UnwindSafe for WriteConstraint
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