pub struct Formatorbit { /* private fields */ }Expand description
Main entry point - a configured converter instance.
Implementations§
Source§impl Formatorbit
impl Formatorbit
Sourcepub fn interpret(&self, input: &str) -> Vec<Interpretation>
pub fn interpret(&self, input: &str) -> Vec<Interpretation>
Parse input and return all possible interpretations.
Sourcepub fn convert(&self, value: &CoreValue) -> Vec<Conversion>
pub fn convert(&self, value: &CoreValue) -> Vec<Conversion>
Find all possible conversions from a value.
Sourcepub fn convert_all(&self, input: &str) -> Vec<ConversionResult>
pub fn convert_all(&self, input: &str) -> Vec<ConversionResult>
Combined: interpret input and find all conversions.
Sourcepub fn format_infos(&self) -> Vec<FormatInfo>
pub fn format_infos(&self) -> Vec<FormatInfo>
Get info about all registered formats (for help/documentation).
Sourcepub fn interpret_filtered(
&self,
input: &str,
format_filter: &[String],
) -> Vec<Interpretation>
pub fn interpret_filtered( &self, input: &str, format_filter: &[String], ) -> Vec<Interpretation>
Parse input with only the specified formats (by id or alias).
If format_filter is empty, all formats are used.
Sourcepub fn convert_all_filtered(
&self,
input: &str,
format_filter: &[String],
) -> Vec<ConversionResult>
pub fn convert_all_filtered( &self, input: &str, format_filter: &[String], ) -> Vec<ConversionResult>
Combined: interpret input (with filter) and find all conversions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Formatorbit
impl !RefUnwindSafe for Formatorbit
impl Send for Formatorbit
impl Sync for Formatorbit
impl Unpin for Formatorbit
impl !UnwindSafe for Formatorbit
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