[−][src]Enum binjs_io::Format
All the formats available for encoding/decoding.
Variants
Fields of Multipart
targets: Targets
stats: Rc<RefCell<Statistics>>
Fields of Entropy
options: Options
Methods
impl Format
[src]
pub fn simple() -> Self
[src]
pub fn randomize_options<R: Rng>(self, rng: &mut R) -> Self
[src]
Pick a random set of options.
Used for testing.
pub fn name(&self) -> String
[src]
Return a human-readable name for this format.
pub fn with_sections<F, E>(&mut self, f: F) -> Result<(), E> where
F: FnMut(&mut CompressionTarget, &str) -> Result<(), E>,
[src]
F: FnMut(&mut CompressionTarget, &str) -> Result<(), E>,
pub fn subcommand<'a, 'b>() -> App<'a, 'b>
[src]
Returns command-line argument for advanced. FormatProvider's subcommands are hidden behind "advanced" command.
pub fn from_matches(spec: &Spec, matches: &ArgMatches) -> Result<Self, Error>
[src]
Create a Format based on command-line arguments.
Pick the first format provider that was invoked by
matches
as a subcommand. If none, pick the default
provider, without any command-line arguments.
Trait Implementations
impl Distribution<Format> for Standard
[src]
Support picking a random format. Used for testing.
Auto Trait Implementations
impl !RefUnwindSafe for Format
impl !Send for Format
impl !Sync for Format
impl Unpin for Format
impl !UnwindSafe for Format
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,