#[repr(C)]pub struct pm_newline_list_t {
pub start: *const u8,
pub size: usize,
pub capacity: usize,
pub offsets: *mut usize,
}
Expand description
A list of offsets of newlines in a string. The offsets are assumed to be sorted/inserted in ascending order.
Fields§
§start: *const u8
A pointer to the start of the source string.
size: usize
The number of offsets in the list.
capacity: usize
The capacity of the list that has been allocated.
offsets: *mut usize
The list of offsets.
Trait Implementations§
Source§impl Clone for pm_newline_list_t
impl Clone for pm_newline_list_t
Source§fn clone(&self) -> pm_newline_list_t
fn clone(&self) -> pm_newline_list_t
Returns a copy 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 pm_newline_list_t
impl Debug for pm_newline_list_t
Source§impl Default for pm_newline_list_t
impl Default for pm_newline_list_t
impl Copy for pm_newline_list_t
Auto Trait Implementations§
impl Freeze for pm_newline_list_t
impl RefUnwindSafe for pm_newline_list_t
impl !Send for pm_newline_list_t
impl !Sync for pm_newline_list_t
impl Unpin for pm_newline_list_t
impl UnwindSafe for pm_newline_list_t
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