pub struct ReplState {
pub stdin: ChildStdin,
pub agda: AgdaRead,
pub file: String,
/* private fields */
}
Expand description
Simple REPL state wrapper.
Fields§
§stdin: ChildStdin
§agda: AgdaRead
§file: String
Implementations§
Source§impl ReplState
impl ReplState
Sourcepub fn print_goal_list(&self)
pub fn print_goal_list(&self)
Print all goals.
pub async fn reload_file(&mut self) -> Result<()>
pub async fn command(&mut self, cmd: Cmd) -> Result<()>
pub async fn command_raw(&mut self, raw_command: &str) -> Result<()>
pub async fn shutdown(&mut self) -> Result<()>
Sourcepub async fn next_display_info(&mut self) -> Result<DisplayInfo>
pub async fn next_display_info(&mut self) -> Result<DisplayInfo>
Skip information until the next display info.
Sourcepub fn interaction_points(&self) -> &[InteractionPoint]
pub fn interaction_points(&self) -> &[InteractionPoint]
Returns the latest next_goals
result.
Sourcepub async fn next_goals(&mut self) -> Result<()>
pub async fn next_goals(&mut self) -> Result<()>
Skip information until the next interaction point (goal) list.
The result can be queried via interaction_points
.
§Note
This information normally comes right after all_goals_warnings
,
and when you call next_all_goals_warnings
,
you’ve already eliminated errors.
Therefore this method don’t deal with errors.
Sourcepub async fn next_error(&mut self) -> Result<AgdaError>
pub async fn next_error(&mut self) -> Result<AgdaError>
Skip information until an error.
Source§impl ReplState
impl ReplState
pub async fn next_give_action(&mut self) -> NextResult<GiveAction>
Source§impl ReplState
impl ReplState
pub async fn next_make_case(&mut self) -> NextResult<MakeCase>
Source§impl ReplState
impl ReplState
pub async fn next_highlight(&mut self) -> NextResult<HighlightingInfo>
Source§impl ReplState
impl ReplState
pub async fn next_all_goals_warnings(&mut self) -> NextResult<AllGoalsWarnings>
Source§impl ReplState
impl ReplState
pub async fn next_goal_specific(&mut self) -> NextResult<GoalSpecific>
Source§impl ReplState
impl ReplState
pub async fn next_module_contents(&mut self) -> NextResult<ModuleContents>
Source§impl ReplState
impl ReplState
pub async fn next_normal_form(&mut self) -> NextResult<NormalForm>
Source§impl ReplState
impl ReplState
pub async fn next_context(&mut self) -> NextResult<Context>
Source§impl ReplState
impl ReplState
pub async fn next_inferred_type(&mut self) -> NextResult<InferredType>
Source§impl ReplState
impl ReplState
pub async fn validate_version_panicking(&mut self)
Sourcepub async fn validate_version(&mut self) -> Result<()>
pub async fn validate_version(&mut self) -> Result<()>
Validate this Agda repl.
Auto Trait Implementations§
impl Freeze for ReplState
impl !RefUnwindSafe for ReplState
impl Send for ReplState
impl Sync for ReplState
impl Unpin for ReplState
impl !UnwindSafe for ReplState
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more