pub struct VarLenUnicode(pub String);Expand description
A variable-length Unicode string type.
This type is used as a marker for the new_attr builder API.
Internally, attributes with this type use fixed-length string encoding
(the string value determines the size), avoiding the complexity of the
global heap while maintaining API compatibility with hdf5-metno.
§Example
use rust_hdf5::types::VarLenUnicode;
let s: VarLenUnicode = "hello".parse().unwrap();
assert_eq!(s.0, "hello");Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for VarLenUnicode
impl Clone for VarLenUnicode
Source§fn clone(&self) -> VarLenUnicode
fn clone(&self) -> VarLenUnicode
Returns a duplicate 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 VarLenUnicode
impl Debug for VarLenUnicode
Source§impl Default for VarLenUnicode
impl Default for VarLenUnicode
Source§fn default() -> VarLenUnicode
fn default() -> VarLenUnicode
Returns the “default value” for a type. Read more
Source§impl Display for VarLenUnicode
impl Display for VarLenUnicode
Source§impl From<&str> for VarLenUnicode
impl From<&str> for VarLenUnicode
Source§impl From<String> for VarLenUnicode
impl From<String> for VarLenUnicode
Source§impl From<VarLenUnicode> for String
impl From<VarLenUnicode> for String
Source§fn from(v: VarLenUnicode) -> Self
fn from(v: VarLenUnicode) -> Self
Converts to this type from the input type.
Source§impl FromStr for VarLenUnicode
impl FromStr for VarLenUnicode
Source§impl PartialEq for VarLenUnicode
impl PartialEq for VarLenUnicode
impl Eq for VarLenUnicode
impl StructuralPartialEq for VarLenUnicode
Auto Trait Implementations§
impl Freeze for VarLenUnicode
impl RefUnwindSafe for VarLenUnicode
impl Send for VarLenUnicode
impl Sync for VarLenUnicode
impl Unpin for VarLenUnicode
impl UnsafeUnpin for VarLenUnicode
impl UnwindSafe for VarLenUnicode
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