#[repr(C)]pub struct ZyanString_ {
pub flags: ZyanStringFlags,
pub vector: ZyanVector,
}Expand description
Defines the ZyanString struct.
The ZyanString type is implemented as a size-prefixed string - which allows for a lot of
performance optimizations.
Nevertheless null-termination is guaranteed at all times to provide maximum compatibility with
default C-style strings (use ZyanStringGetData to access the C-style string).
All fields in this struct should be considered as “private”. Any changes may lead to unexpected behavior.
Fields§
§flags: ZyanStringFlagsString flags.
vector: ZyanVectorThe vector that contains the actual string.
Trait Implementations§
Source§impl Clone for ZyanString_
impl Clone for ZyanString_
Source§fn clone(&self) -> ZyanString_
fn clone(&self) -> ZyanString_
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 ZyanString_
impl Debug for ZyanString_
Source§impl Default for ZyanString_
impl Default for ZyanString_
Source§impl PartialEq for ZyanString_
impl PartialEq for ZyanString_
impl Copy for ZyanString_
impl Eq for ZyanString_
impl StructuralPartialEq for ZyanString_
Auto Trait Implementations§
impl Freeze for ZyanString_
impl RefUnwindSafe for ZyanString_
impl !Send for ZyanString_
impl !Sync for ZyanString_
impl Unpin for ZyanString_
impl UnwindSafe for ZyanString_
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