pub enum ParamWriterFormat {
Binary,
JSON,
}
Expand description
Available serializers for ParamWriter
.
§Extensions
- JSON:
.json
- Binary:
.bin
§Example
use argmin_observer_paramwriter::ParamWriterFormat;
let bincode = ParamWriterFormat::Binary;
let json = ParamWriterFormat::JSON;
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ParamWriterFormat
impl Clone for ParamWriterFormat
source§fn clone(&self) -> ParamWriterFormat
fn clone(&self) -> ParamWriterFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ParamWriterFormat
impl Debug for ParamWriterFormat
source§impl Default for ParamWriterFormat
impl Default for ParamWriterFormat
source§fn default() -> ParamWriterFormat
fn default() -> ParamWriterFormat
Returns the “default value” for a type. Read more
source§impl PartialEq for ParamWriterFormat
impl PartialEq for ParamWriterFormat
impl Copy for ParamWriterFormat
impl Eq for ParamWriterFormat
impl StructuralPartialEq for ParamWriterFormat
Auto Trait Implementations§
impl Freeze for ParamWriterFormat
impl RefUnwindSafe for ParamWriterFormat
impl Send for ParamWriterFormat
impl Sync for ParamWriterFormat
impl Unpin for ParamWriterFormat
impl UnwindSafe for ParamWriterFormat
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.