pub struct SettingsSpan {
pub data: *const SettingsValue,
pub size: usize,
}
Expand description
| Accessor for list of settings that skips
| negated values when iterated over.
|
| The last boolean false
value in the list and
| all earlier values are considered negated.
Fields§
§data: *const SettingsValue
§size: usize
Implementations§
Source§impl SettingsSpan
impl SettingsSpan
pub fn new(data: *const SettingsValue, size: usize) -> Self
Sourcepub fn begin(&self) -> *const SettingsValue
pub fn begin(&self) -> *const SettingsValue
| Pointer to first non-negated value. |
Sourcepub fn end(&self) -> *const SettingsValue
pub fn end(&self) -> *const SettingsValue
| Pointer to end of values. |
Sourcepub fn last_negated(&self) -> bool
pub fn last_negated(&self) -> bool
| True if the last value is negated. |
Trait Implementations§
Source§impl Default for SettingsSpan
impl Default for SettingsSpan
Source§impl From<&SettingsValue> for SettingsSpan
impl From<&SettingsValue> for SettingsSpan
Source§fn from(value: &SettingsValue) -> Self
fn from(value: &SettingsValue) -> Self
Converts to this type from the input type.
Source§impl From<&Vec<SettingsValue>> for SettingsSpan
impl From<&Vec<SettingsValue>> for SettingsSpan
Source§fn from(vec: &Vec<SettingsValue>) -> Self
fn from(vec: &Vec<SettingsValue>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SettingsSpan
impl RefUnwindSafe for SettingsSpan
impl !Send for SettingsSpan
impl !Sync for SettingsSpan
impl Unpin for SettingsSpan
impl UnwindSafe for SettingsSpan
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