pub enum OptionScopeId {
Global,
Buffer(BufferId),
Window(WindowId),
}Expand description
Runtime scope identifier for option access.
Used when getting or setting option values to specify the exact scope context (which buffer, which window, or global).
Variants§
Global
Global scope (no buffer/window context).
Buffer(BufferId)
Buffer-local scope with specific buffer ID.
Window(WindowId)
Window-local scope with specific window ID.
Trait Implementations§
Source§impl Clone for OptionScopeId
impl Clone for OptionScopeId
Source§fn clone(&self) -> OptionScopeId
fn clone(&self) -> OptionScopeId
Returns a duplicate of the value. Read more
1.0.0 · 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 OptionScopeId
impl Debug for OptionScopeId
Source§impl Default for OptionScopeId
impl Default for OptionScopeId
Source§fn default() -> OptionScopeId
fn default() -> OptionScopeId
Returns the “default value” for a type. Read more
Source§impl Display for OptionScopeId
impl Display for OptionScopeId
Source§impl Hash for OptionScopeId
impl Hash for OptionScopeId
Source§impl PartialEq for OptionScopeId
impl PartialEq for OptionScopeId
impl Copy for OptionScopeId
impl Eq for OptionScopeId
impl StructuralPartialEq for OptionScopeId
Auto Trait Implementations§
impl Freeze for OptionScopeId
impl RefUnwindSafe for OptionScopeId
impl Send for OptionScopeId
impl Sync for OptionScopeId
impl Unpin for OptionScopeId
impl UnsafeUnpin for OptionScopeId
impl UnwindSafe for OptionScopeId
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