pub struct Instruction {
pub path: PathBuf,
pub scope: Scope,
pub imported_by: Option<(PathBuf, usize)>,
pub depth: usize,
pub later: Option<PathBuf>,
pub limit: Option<usize>,
pub text: Option<String>,
}Expand description
One instruction file, in the order the agent reads it.
Fields§
§path: PathBuf§scope: Scope§imported_by: Option<(PathBuf, usize)>The file and line that imported it, for a file brought in by @path.
depth: usizeHow many imports deep it is: 0 for a file the agent finds itself.
later: Option<PathBuf>Loaded only once the agent works in this folder, not at the start.
limit: Option<usize>The agent reads only this many lines of it.
text: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§impl Debug for Instruction
impl Debug for Instruction
Source§impl PartialEq for Instruction
impl PartialEq for Instruction
impl StructuralPartialEq for Instruction
Auto Trait Implementations§
impl Forget for Instruction
impl Freeze for Instruction
impl Move for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnsafeUnpin for Instruction
impl UnwindSafe for Instruction
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