pub struct FakeHost { /* private fields */ }Implementations
Trait Implementations
sourceimpl Host for FakeHost
impl Host for FakeHost
fn stdout(&mut self, out: &str)
fn stderr(&mut self, out: &str)
fn print_err(&mut self, err: ShellError, source: &Text)
fn vars(&self) -> Vec<(String, String)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
fn env_get(&mut self, key: OsString) -> Option<OsString>
fn env_set(&mut self, key: OsString, value: OsString)
fn env_rm(&mut self, key: OsString)
fn width(&self) -> usize
fn height(&self) -> usize
fn is_external_cmd(&self, _: &str) -> bool
Auto Trait Implementations
impl RefUnwindSafe for FakeHost
impl Send for FakeHost
impl Sync for FakeHost
impl Unpin for FakeHost
impl UnwindSafe for FakeHost
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more