Struct overclock::core::LocateScopeId
source · [−]pub struct LocateScopeId { /* private fields */ }
Expand description
Helper struct, to traverse the supervision tree and locate the scope id
Implementations
sourceimpl LocateScopeId
impl LocateScopeId
sourcepub fn with_scope_id(start: ScopeId) -> Self
pub fn with_scope_id(start: ScopeId) -> Self
Create new LocateScopeId struct with scope id as its start id
sourcepub fn child<D: Into<String>>(self, dir_name: D) -> Self
pub fn child<D: Into<String>>(self, dir_name: D) -> Self
Add child with the provided name to the directory path
sourcepub fn grandparent(self) -> Self
pub fn grandparent(self) -> Self
Add grand parent to the directory path
Auto Trait Implementations
impl RefUnwindSafe for LocateScopeId
impl Send for LocateScopeId
impl Sync for LocateScopeId
impl Unpin for LocateScopeId
impl UnwindSafe for LocateScopeId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more