pub struct SoaTextSlice { /* private fields */ }Expand description
Compact byte-range slice into SceneLayoutSoa::text_bytes enabling zero-allocation Send + Sync text reads.
Implementations§
Source§impl SoaTextSlice
impl SoaTextSlice
pub fn get_byte_start(&self) -> u32
pub fn get_mut_byte_start(&mut self) -> &mut u32
pub fn set_byte_start(&mut self, val: u32) -> &mut Self
pub fn get_byte_len(&self) -> u32
pub fn get_mut_byte_len(&mut self) -> &mut u32
pub fn set_byte_len(&mut self, val: u32) -> &mut Self
pub fn get_is_ascii(&self) -> bool
pub fn get_mut_is_ascii(&mut self) -> &mut bool
pub fn set_is_ascii(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for SoaTextSlice
impl Clone for SoaTextSlice
impl Copy for SoaTextSlice
Source§impl Debug for SoaTextSlice
impl Debug for SoaTextSlice
Source§impl Default for SoaTextSlice
impl Default for SoaTextSlice
impl Eq for SoaTextSlice
Source§impl Hash for SoaTextSlice
impl Hash for SoaTextSlice
Source§impl PartialEq for SoaTextSlice
impl PartialEq for SoaTextSlice
impl StructuralPartialEq for SoaTextSlice
Auto Trait Implementations§
impl Forget for SoaTextSlice
impl Freeze for SoaTextSlice
impl Move for SoaTextSlice
impl RefUnwindSafe for SoaTextSlice
impl Send for SoaTextSlice
impl Sync for SoaTextSlice
impl Unpin for SoaTextSlice
impl UnsafeUnpin for SoaTextSlice
impl UnwindSafe for SoaTextSlice
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