pub struct VtkBinaryWriter;Expand description
Utilities for writing numeric data in little-endian binary format.
Implementations§
Source§impl VtkBinaryWriter
impl VtkBinaryWriter
Sourcepub fn encode_f64_le(values: &[f64]) -> Vec<u8> ⓘ
pub fn encode_f64_le(values: &[f64]) -> Vec<u8> ⓘ
Encode a slice of f64 values as little-endian bytes.
Sourcepub fn encode_i64_le(values: &[i64]) -> Vec<u8> ⓘ
pub fn encode_i64_le(values: &[i64]) -> Vec<u8> ⓘ
Encode a slice of i64 values as little-endian bytes.
Sourcepub fn base64_encode(data: &[u8]) -> String
pub fn base64_encode(data: &[u8]) -> String
Base64-encode a byte slice (same algorithm as XmlVtuWriter::encode_base64).
Auto Trait Implementations§
impl Freeze for VtkBinaryWriter
impl RefUnwindSafe for VtkBinaryWriter
impl Send for VtkBinaryWriter
impl Sync for VtkBinaryWriter
impl Unpin for VtkBinaryWriter
impl UnsafeUnpin for VtkBinaryWriter
impl UnwindSafe for VtkBinaryWriter
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.