[−][src]Struct preserves::value::packed::writer::PackedWriter
Implementations
impl<'w, W: Write> PackedWriter<'w, W>
[src]
pub fn write_noop(&mut self) -> Result<()>
[src]
impl<'w> PackedWriter<'w, &'w mut Vec<u8>>
[src]
Trait Implementations
impl<'w, W: Write> Writer for PackedWriter<'w, W>
[src]
type Pointer = ()
type Annotation = ()
type Compound = bool
type Dictionary = bool
type StreamedAtom = ()
type KeyPointer = ()
fn start_annotation(&mut self) -> Result<Self::Annotation>
[src]
fn extend_annotation(
&mut self,
_a: &mut Self::Annotation,
annotation: &IOValue
) -> Result<()>
[src]
&mut self,
_a: &mut Self::Annotation,
annotation: &IOValue
) -> Result<()>
fn end_annotation(
&mut self,
_a: Self::Annotation,
_value_p: Self::Pointer
) -> Result<Self::Pointer>
[src]
&mut self,
_a: Self::Annotation,
_value_p: Self::Pointer
) -> Result<Self::Pointer>
fn align(&mut self, _natural_chunksize: u64) -> Result<()>
[src]
fn write_bool(&mut self, v: bool) -> Result<()>
[src]
fn write_f32(&mut self, v: f32) -> Result<()>
[src]
fn write_f64(&mut self, v: f64) -> Result<()>
[src]
fn write_i8(&mut self, v: i8) -> Result<()>
[src]
fn write_u8(&mut self, v: u8) -> Result<()>
[src]
fn write_i16(&mut self, v: i16) -> Result<()>
[src]
fn write_u16(&mut self, v: u16) -> Result<()>
[src]
fn write_i32(&mut self, v: i32) -> Result<()>
[src]
fn write_u32(&mut self, v: u32) -> Result<()>
[src]
fn write_i64(&mut self, v: i64) -> Result<()>
[src]
fn write_u64(&mut self, v: u64) -> Result<()>
[src]
fn write_i128(&mut self, v: i128) -> Result<()>
[src]
fn write_u128(&mut self, v: u128) -> Result<()>
[src]
fn write_int(&mut self, v: &BigInt) -> Result<()>
[src]
fn write_string(&mut self, v: &str) -> Result<()>
[src]
fn write_bytes(&mut self, v: &[u8]) -> Result<()>
[src]
fn write_symbol(&mut self, v: &str) -> Result<()>
[src]
fn stream_string(&mut self) -> Result<Option<Self::StreamedAtom>>
[src]
fn stream_bytes(&mut self) -> Result<Option<Self::StreamedAtom>>
[src]
fn stream_symbol(&mut self) -> Result<Option<Self::StreamedAtom>>
[src]
fn extend_atom(&mut self, _s: &mut Self::StreamedAtom, bs: &[u8]) -> Result<()>
[src]
fn end_atom(&mut self, _s: Self::StreamedAtom) -> Result<()>
[src]
fn start_record(&mut self, field_count: usize) -> Result<Self::Compound>
[src]
fn start_sequence(&mut self, item_count: usize) -> Result<Self::Compound>
[src]
fn start_set(&mut self, item_count: usize) -> Result<Self::Compound>
[src]
fn stream_record(&mut self) -> Result<Option<Self::Compound>>
[src]
fn stream_sequence(&mut self) -> Result<Option<Self::Compound>>
[src]
fn stream_set(&mut self) -> Result<Option<Self::Compound>>
[src]
fn extend_compound(
&mut self,
_s: &mut Self::Compound,
_value_p: Self::Pointer
) -> Result<()>
[src]
&mut self,
_s: &mut Self::Compound,
_value_p: Self::Pointer
) -> Result<()>
fn end_compound(&mut self, s: Self::Compound) -> Result<()>
[src]
fn start_dictionary(&mut self, entry_count: usize) -> Result<Self::Dictionary>
[src]
fn stream_dictionary(&mut self) -> Result<Option<Self::Dictionary>>
[src]
fn extend_dictionary_key(
&mut self,
_s: &mut Self::Dictionary,
_key_p: Self::Pointer
) -> Result<Self::KeyPointer>
[src]
&mut self,
_s: &mut Self::Dictionary,
_key_p: Self::Pointer
) -> Result<Self::KeyPointer>
fn extend_dictionary_value(
&mut self,
_s: &mut Self::Dictionary,
_key_p: Self::KeyPointer,
_value_p: Self::Pointer
) -> Result<()>
[src]
&mut self,
_s: &mut Self::Dictionary,
_key_p: Self::KeyPointer,
_value_p: Self::Pointer
) -> Result<()>
fn end_dictionary(&mut self, s: Self::Dictionary) -> Result<()>
[src]
fn write(&mut self, v: &IOValue) -> Result<Self::Pointer>
[src]
fn write_value(&mut self, v: &UnwrappedIOValue) -> Result<Self::Pointer>
[src]
Auto Trait Implementations
impl<'w, W> RefUnwindSafe for PackedWriter<'w, W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<'w, W> Send for PackedWriter<'w, W> where
W: Send,
W: Send,
impl<'w, W> Sync for PackedWriter<'w, W> where
W: Sync,
W: Sync,
impl<'w, W> Unpin for PackedWriter<'w, W>
impl<'w, W> !UnwindSafe for PackedWriter<'w, W>
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> 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>,