[−][src]Enum binjs::io::Format
pub enum Format { Simple, Multipart { targets: Targets, stats: Rc<RefCell<Statistics>>, }, XML, JSON, Entropy { options: Options, }, }
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() -> Format
[src]
pub fn randomize_options<R>(self, rng: &mut R) -> Format where
R: Rng,
[src][−]
R: Rng,
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<Format, 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.
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,
impl<T> Downcast for T where
T: Any,
[src][+]
T: Any,
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>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,