#[repr(u32)]
pub enum ucl_emitter {
UCL_EMIT_JSON,
UCL_EMIT_JSON_COMPACT,
UCL_EMIT_CONFIG,
UCL_EMIT_YAML,
UCL_EMIT_MSGPACK,
UCL_EMIT_MAX,
}
Expand description
You can use one of these types to serialise #ucl_object_t by using ucl_object_emit().
Variants§
UCL_EMIT_JSON
< Emit fine formatted JSON
UCL_EMIT_JSON_COMPACT
< Emit compacted JSON
UCL_EMIT_CONFIG
< Emit human readable config format
UCL_EMIT_YAML
< Emit embedded YAML format
UCL_EMIT_MSGPACK
< Emit msgpack output
UCL_EMIT_MAX
< Unsupported emitter type
Trait Implementations§
source§impl Clone for ucl_emitter
impl Clone for ucl_emitter
source§fn clone(&self) -> ucl_emitter
fn clone(&self) -> ucl_emitter
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 ucl_emitter
impl Debug for ucl_emitter
source§impl Hash for ucl_emitter
impl Hash for ucl_emitter
source§impl PartialEq<ucl_emitter> for ucl_emitter
impl PartialEq<ucl_emitter> for ucl_emitter
source§fn eq(&self, other: &ucl_emitter) -> bool
fn eq(&self, other: &ucl_emitter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ucl_emitter
impl Eq for ucl_emitter
impl StructuralEq for ucl_emitter
impl StructuralPartialEq for ucl_emitter
Auto Trait Implementations§
impl RefUnwindSafe for ucl_emitter
impl Send for ucl_emitter
impl Sync for ucl_emitter
impl Unpin for ucl_emitter
impl UnwindSafe for ucl_emitter
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