pub struct Values(/* private fields */);
Expand description
A collection of line values.
Lines are identified by their offset.
Implementations§
source§impl Values
impl Values
sourcepub fn toggle(&mut self, offset: Offset)
pub fn toggle(&mut self, offset: Offset)
Toggle the value of a line.
If not already set then sets the line active.
sourcepub fn from_offsets(offsets: &[Offset]) -> Values
pub fn from_offsets(offsets: &[Offset]) -> Values
Construct a Values
collection for a set of line offsets.
Typically used to create a values template to be populated via a call to
crate::Request::values()
.
All lines are set to inactive.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Values
impl<'de> Deserialize<'de> for Values
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> FromIterator<&'a u32> for Values
impl<'a> FromIterator<&'a u32> for Values
source§impl PartialEq for Values
impl PartialEq for Values
impl Eq for Values
impl StructuralPartialEq for Values
Auto Trait Implementations§
impl Freeze for Values
impl RefUnwindSafe for Values
impl Send for Values
impl Sync for Values
impl Unpin for Values
impl UnwindSafe for Values
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