pub struct RepoObserver;Expand description
Perception of a source tree.
Implementations§
Source§impl RepoObserver
impl RepoObserver
Trait Implementations§
Source§impl Clone for RepoObserver
impl Clone for RepoObserver
Source§fn clone(&self) -> RepoObserver
fn clone(&self) -> RepoObserver
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 RepoObserver
impl Debug for RepoObserver
Source§impl Default for RepoObserver
impl Default for RepoObserver
Source§fn default() -> RepoObserver
fn default() -> RepoObserver
Returns the “default value” for a type. Read more
Source§impl Observer for RepoObserver
impl Observer for RepoObserver
Source§fn name(&self) -> &str
fn name(&self) -> &str
Stable name; recorded in
WorldState::observer and hashed into the decision record.Source§fn handles(&self, locator: &str) -> bool
fn handles(&self, locator: &str) -> bool
Could this observer handle the locator? Cheap and syntactic — a
true here is a
claim about the shape of the string, not a promise the target exists.fn observe(&self, locator: &str) -> Result<WorldState>
Auto Trait Implementations§
impl Freeze for RepoObserver
impl RefUnwindSafe for RepoObserver
impl Send for RepoObserver
impl Sync for RepoObserver
impl Unpin for RepoObserver
impl UnsafeUnpin for RepoObserver
impl UnwindSafe for RepoObserver
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