pub struct Session<'a> { /* private fields */ }
Implementations§
Source§impl Session<'_>
impl Session<'_>
pub fn reset_session(&mut self)
pub fn next(&mut self, out: &mut String) -> Result<()>
pub fn back(&mut self, out: &mut String) -> Result<()>
pub fn play(&mut self, i: usize, out: &mut String) -> Result<()>
pub fn play_till_error(&mut self, out: &mut String) -> Result<()>
pub fn step_forward(&mut self) -> Result<Outcome>
pub fn play_to(&mut self, i: usize) -> Result<Outcome>
pub fn list_range(&self, range: Range<isize>, out: &mut String)
pub fn list(&self, out: &mut String)
pub fn parse_type(&self, ty: &str) -> String
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Session<'a>
impl<'a> RefUnwindSafe for Session<'a>
impl<'a> Send for Session<'a>
impl<'a> Sync for Session<'a>
impl<'a> Unpin for Session<'a>
impl<'a> !UnwindSafe for Session<'a>
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