Struct bitcoin_settings::SettingsSpan
source · 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: usizeImplementations§
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, Global>> for SettingsSpan
impl From<&Vec<SettingsValue, Global>> 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 RefUnwindSafe for SettingsSpan
impl !Send for SettingsSpan
impl !Sync for SettingsSpan
impl Unpin for SettingsSpan
impl UnwindSafe for SettingsSpan
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more