pub struct Parser;Expand description
Parser helper - unit struct with parsing methods.
Implementations§
Source§impl Parser
impl Parser
Sourcepub fn parse_float(&self, s: &str) -> Result<f64, ParseFloatError>
pub fn parse_float(&self, s: &str) -> Result<f64, ParseFloatError>
Parse float.
Sourcepub fn parse_bool(&self, s: &str) -> Result<bool, ParseBoolError>
pub fn parse_bool(&self, s: &str) -> Result<bool, ParseBoolError>
Parse boolean.
Trait Implementations§
Source§impl Elicitation for Parser
impl Elicitation for Parser
Source§async fn elicit(_client: &ElicitClient) -> ElicitResult<Self>
async fn elicit(_client: &ElicitClient) -> ElicitResult<Self>
Elicit a value of this type from the user via style-aware client. Read more
Source§fn with_style(style: Self::Style) -> ElicitBuilder<Self>
fn with_style(style: Self::Style) -> ElicitBuilder<Self>
Create a builder for one-off style override. Read more
Source§fn elicit_proven(
client: &ElicitClient,
) -> impl Future<Output = ElicitResult<(Self, Established<Is<Self>>)>> + Send
fn elicit_proven( client: &ElicitClient, ) -> impl Future<Output = ElicitResult<(Self, Established<Is<Self>>)>> + Send
Elicit a value with proof it inhabits type Self. Read more
impl Copy for Parser
impl Eq for Parser
impl StructuralPartialEq for Parser
Auto Trait Implementations§
impl Freeze for Parser
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> WithContract for T
impl<T> WithContract for T
Source§fn with_contract<C>(contract: C) -> ContractedElicitation<Self, C>
fn with_contract<C>(contract: C) -> ContractedElicitation<Self, C>
Attach a contract to this type’s elicitation. Read more