#[repr(C)]pub struct ParserInputRaw {
pub payload: NonNull<c_void>,
pub read: unsafe extern "C" fn(payload: NonNull<c_void>, byte_index: u32, position: Point, bytes_read: *mut u32) -> *const u8,
pub encoding: InputEncoding,
pub decode: Option<unsafe extern "C" fn(string: *const u8, length: u32, code_point: *const i32) -> u32>,
}Fields§
§payload: NonNull<c_void>§read: unsafe extern "C" fn(payload: NonNull<c_void>, byte_index: u32, position: Point, bytes_read: *mut u32) -> *const u8§encoding: InputEncoding§decode: Option<unsafe extern "C" fn(string: *const u8, length: u32, code_point: *const i32) -> u32>A function to decode the the input.
This function is only used if the encoding is InputEncoding::Custom.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParserInputRaw
impl RefUnwindSafe for ParserInputRaw
impl !Send for ParserInputRaw
impl !Sync for ParserInputRaw
impl Unpin for ParserInputRaw
impl UnsafeUnpin for ParserInputRaw
impl UnwindSafe for ParserInputRaw
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