pub struct PlannedText { /* private fields */ }Expand description
Original text plus its exact future counted-string sizes.
Implementations§
Source§impl PlannedText
impl PlannedText
Sourcepub const fn source(&self) -> &ReturnText
pub const fn source(&self) -> &ReturnText
Returns the original owned text source.
Sourcepub const fn payload_code_units(&self) -> usize
pub const fn payload_code_units(&self) -> usize
Returns the planned UTF-16 payload length excluding the count prefix.
Sourcepub const fn storage_code_units(&self) -> usize
pub const fn storage_code_units(&self) -> usize
Returns the planned allocation length including the count prefix.
Trait Implementations§
Source§impl Clone for PlannedText
impl Clone for PlannedText
Source§impl Debug for PlannedText
impl Debug for PlannedText
impl Eq for PlannedText
Source§impl PartialEq for PlannedText
impl PartialEq for PlannedText
impl StructuralPartialEq for PlannedText
Auto Trait Implementations§
impl Freeze for PlannedText
impl RefUnwindSafe for PlannedText
impl Send for PlannedText
impl Sync for PlannedText
impl Unpin for PlannedText
impl UnsafeUnpin for PlannedText
impl UnwindSafe for PlannedText
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