pub enum RegisterOutcome {
Inserted,
AlreadyRegistered,
AnchorNotFound,
TargetMissing,
Skipped,
}Expand description
Result of one auto-register attempt. The wrapping caller turns these into print lines.
Variants§
Inserted
Edit applied and written.
AlreadyRegistered
Target file already contains the registration — nothing to do.
AnchorNotFound
No suitable anchor found; caller falls back to printing a hint.
TargetMissing
Target file doesn’t exist (e.g. no src/main.rs).
Skipped
The user opted out via --no-register; we didn’t attempt the
edit at all. Kept distinct from AnchorNotFound so the CLI
can phrase the message correctly.
Trait Implementations§
Source§impl Debug for RegisterOutcome
impl Debug for RegisterOutcome
Source§impl PartialEq for RegisterOutcome
impl PartialEq for RegisterOutcome
Source§fn eq(&self, other: &RegisterOutcome) -> bool
fn eq(&self, other: &RegisterOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RegisterOutcome
impl StructuralPartialEq for RegisterOutcome
Auto Trait Implementations§
impl Freeze for RegisterOutcome
impl RefUnwindSafe for RegisterOutcome
impl Send for RegisterOutcome
impl Sync for RegisterOutcome
impl Unpin for RegisterOutcome
impl UnsafeUnpin for RegisterOutcome
impl UnwindSafe for RegisterOutcome
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.