pub struct HookSetOptions {
pub append: bool,
pub index: Option<u32>,
}Expand description
Indexed mutation options for set-hook.
Fields§
§append: boolWhether the new command should be appended to the next free array slot.
index: Option<u32>The explicit array index to replace, when present.
Trait Implementations§
Source§impl Clone for HookSetOptions
impl Clone for HookSetOptions
Source§fn clone(&self) -> HookSetOptions
fn clone(&self) -> HookSetOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HookSetOptions
impl Debug for HookSetOptions
Source§impl Default for HookSetOptions
impl Default for HookSetOptions
Source§fn default() -> HookSetOptions
fn default() -> HookSetOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for HookSetOptions
impl PartialEq for HookSetOptions
Source§fn eq(&self, other: &HookSetOptions) -> bool
fn eq(&self, other: &HookSetOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for HookSetOptions
impl Eq for HookSetOptions
impl StructuralPartialEq for HookSetOptions
Auto Trait Implementations§
impl Freeze for HookSetOptions
impl RefUnwindSafe for HookSetOptions
impl Send for HookSetOptions
impl Sync for HookSetOptions
impl Unpin for HookSetOptions
impl UnsafeUnpin for HookSetOptions
impl UnwindSafe for HookSetOptions
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