[][src]Struct agda_mode::agda::ReplState

pub struct ReplState {
    pub stdin: ChildStdin,
    pub agda: AgdaRead,
    pub file: String,
    // some fields omitted
}

Simple REPL state wrapper.

Fields

stdin: ChildStdinagda: AgdaReadfile: String

Implementations

impl ReplState[src]

pub async fn response<'_>(&'_ mut self) -> Result<Resp>[src]

Await the next Agda response.

impl ReplState[src]

pub fn print_goal_list(&self)[src]

Print all goals.

pub async fn reload_file<'_>(&'_ mut self) -> Result<()>[src]

pub async fn command<'_>(&'_ mut self, cmd: Cmd) -> Result<()>[src]

pub async fn command_raw<'_, '_>(
    &'_ mut self,
    raw_command: &'_ str
) -> Result<()>
[src]

pub async fn shutdown<'_>(&'_ mut self) -> Result<()>[src]

pub async fn next_display_info<'_>(&'_ mut self) -> Result<DisplayInfo>[src]

Skip information until the next display info.

pub fn interaction_points(&self) -> &[InteractionPoint][src]

Returns the latest next_goals result.

pub async fn next_goals<'_>(&'_ mut self) -> Result<()>[src]

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.

pub async fn next_error<'_>(&'_ mut self) -> Result<AgdaError>[src]

Skip information until an error.

impl ReplState[src]

pub async fn next_give_action<'_>(&'_ mut self) -> NextResult<GiveAction>[src]

impl ReplState[src]

pub async fn next_make_case<'_>(&'_ mut self) -> NextResult<MakeCase>[src]

impl ReplState[src]

pub async fn next_highlight<'_>(&'_ mut self) -> NextResult<HighlightingInfo>[src]

impl ReplState[src]

pub async fn next_all_goals_warnings<'_>(
    &'_ mut self
) -> NextResult<AllGoalsWarnings>
[src]

impl ReplState[src]

pub async fn next_goal_specific<'_>(&'_ mut self) -> NextResult<GoalSpecific>[src]

impl ReplState[src]

pub async fn next_module_contents<'_>(
    &'_ mut self
) -> NextResult<ModuleContents>
[src]

impl ReplState[src]

pub async fn next_normal_form<'_>(&'_ mut self) -> NextResult<NormalForm>[src]

impl ReplState[src]

pub async fn next_context<'_>(&'_ mut self) -> NextResult<Context>[src]

impl ReplState[src]

pub async fn next_inferred_type<'_>(&'_ mut self) -> NextResult<InferredType>[src]

impl ReplState[src]

pub async fn validate_version_panicking<'_>(&'_ mut self)[src]

pub async fn validate_version<'_>(&'_ mut self) -> Result<()>[src]

Validate this Agda repl.

impl ReplState[src]

pub async fn start<'_>(agda_program: &'_ str, file: String) -> Result<Self>[src]

pub async fn from_io(
    stdin: ChildStdin,
    stdout: BufReader<ChildStdout>,
    file: String
) -> Result<Self>
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.