pub struct EnumParser {
pub variants: Vec<String>,
}Fields§
§variants: Vec<String>Implementations§
Source§impl EnumParser
impl EnumParser
pub fn new<I: IntoIterator<Item = impl Into<String>>>(variants: I) -> Self
Trait Implementations§
Source§impl Parser<String> for EnumParser
impl Parser<String> for EnumParser
Auto Trait Implementations§
impl Freeze for EnumParser
impl RefUnwindSafe for EnumParser
impl Send for EnumParser
impl Sync for EnumParser
impl Unpin for EnumParser
impl UnsafeUnpin for EnumParser
impl UnwindSafe for EnumParser
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