pub struct TheAnswer {
pub output: String,
pub code: Option<i32>,
pub hung: bool,
pub failure: Option<String>,
}Expand description
What the v1 said about a script.
Fields§
§output: StringThe text that the v1 wrote out.
code: Option<i32>The code of the end of the v1, and None when it did not end.
hung: boolWhether the v1 was still running when the time was over.
failure: Option<String>The reason the v1 could not be run at all.
Implementations§
Source§impl TheAnswer
impl TheAnswer
Sourcepub fn the_errors(&self) -> Vec<String>
pub fn the_errors(&self) -> Vec<String>
The lines of the answer, with the line of the script in them.
The v1 writes the errors like this:
probe.ahk (12) : ==> MessageThe script is written with the directive of the v1 in front, and the line of the error is one more than the line of the script.
Trait Implementations§
Auto Trait Implementations§
impl Forget for TheAnswer
impl Freeze for TheAnswer
impl Move for TheAnswer
impl RefUnwindSafe for TheAnswer
impl Send for TheAnswer
impl Sync for TheAnswer
impl Unpin for TheAnswer
impl UnsafeUnpin for TheAnswer
impl UnwindSafe for TheAnswer
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.