pub struct ContextId(pub UniqueId);Expand description
Unique identifier for a context (session or workspace).
Tuple Fields§
§0: UniqueIdImplementations§
Source§impl ContextId
impl ContextId
Sourcepub fn default_context() -> Self
pub fn default_context() -> Self
The default context (always exists)
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Check if this is the default context
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ContextId
impl<'de> Deserialize<'de> for ContextId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ContextId
impl Eq for ContextId
impl StructuralPartialEq for ContextId
Auto Trait Implementations§
impl Freeze for ContextId
impl RefUnwindSafe for ContextId
impl Send for ContextId
impl Sync for ContextId
impl Unpin for ContextId
impl UnsafeUnpin for ContextId
impl UnwindSafe for ContextId
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