pub struct StringInput { /* private fields */ }Expand description
A line-oriented input over static text.
Implementations§
Source§impl StringInput
impl StringInput
Sourcepub fn new(lines: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn new(lines: impl IntoIterator<Item = impl Into<String>>) -> Self
Creates a line-oriented input; each element of lines is a line
(without newlines).
Trait Implementations§
Source§impl Clone for StringInput
impl Clone for StringInput
Source§impl Debug for StringInput
impl Debug for StringInput
Source§impl Input for StringInput
impl Input for StringInput
Auto Trait Implementations§
impl Freeze for StringInput
impl RefUnwindSafe for StringInput
impl Send for StringInput
impl Sync for StringInput
impl Unpin for StringInput
impl UnsafeUnpin for StringInput
impl UnwindSafe for StringInput
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