pub struct Values(_);
Expand description
A collection of line values.
Lines are identified by their offset.
Implementations
sourceimpl 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::Request::values()
.
All lines are set to inactive.
Trait Implementations
impl Eq for Values
impl StructuralEq for Values
impl StructuralPartialEq for Values
Auto Trait Implementations
impl RefUnwindSafe for Values
impl Send for Values
impl Sync for Values
impl Unpin for Values
impl UnwindSafe for Values
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more