pub enum Op {
Bind {
name: String,
src: BindSource,
},
Unbind {
name: String,
},
Edit {
kind: EditKind,
path: String,
expr: Option<String>,
},
Declare {
name: String,
text: String,
},
Output {
name: String,
ty: Option<String>,
expr: String,
},
Drop {
name: String,
},
Reload {
snapshot: HashMap<PathBuf, String>,
},
Reset,
}Expand description
an operation of the session log (docs/tooling/02_repl.md §1)
Variants§
Bind
bind a document to a root
Unbind
unbind a root
Edit
edit a document
Fields
Declare
declare a type, a function, or a constant in the session
Output
add a session output
Drop
drop a session declaration
Reload
re-read the universe from disk
Reset
forget every operation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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