pub enum AgentsMdMode {
Nearest,
All,
}Expand description
Controls how many AGENTS.md files AgentsMd returns during ancestor
discovery.
Variants§
Nearest
Stop at the first (nearest) AGENTS.md found while walking upward.
All
Collect every AGENTS.md from the filesystem root down to the start
directory, ordered from outermost to innermost.
Trait Implementations§
Source§impl Clone for AgentsMdMode
impl Clone for AgentsMdMode
Source§fn clone(&self) -> AgentsMdMode
fn clone(&self) -> AgentsMdMode
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 moreimpl Copy for AgentsMdMode
Source§impl Debug for AgentsMdMode
impl Debug for AgentsMdMode
impl Eq for AgentsMdMode
Source§impl PartialEq for AgentsMdMode
impl PartialEq for AgentsMdMode
Source§fn eq(&self, other: &AgentsMdMode) -> bool
fn eq(&self, other: &AgentsMdMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AgentsMdMode
Auto Trait Implementations§
impl Freeze for AgentsMdMode
impl RefUnwindSafe for AgentsMdMode
impl Send for AgentsMdMode
impl Sync for AgentsMdMode
impl Unpin for AgentsMdMode
impl UnsafeUnpin for AgentsMdMode
impl UnwindSafe for AgentsMdMode
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