pub struct ObjectBuilder<'input, 'a, const N: usize> { /* private fields */ }Implementations§
Source§impl<'input, 'a, const N: usize> ObjectBuilder<'input, 'a, N>
impl<'input, 'a, const N: usize> ObjectBuilder<'input, 'a, N>
pub fn new(input: &'input str) -> Self
pub fn attr(self, attr: Attr<'a>) -> Self
pub fn integer(self, name: &'a str, target: &'a mut i32) -> Self
pub fn integers(self, name: &'a str, target: &'a mut [i32]) -> Self
pub fn uinteger(self, name: &'a str, target: &'a mut u32) -> Self
pub fn uintegers(self, name: &'a str, target: &'a mut [u32]) -> Self
pub fn short(self, name: &'a str, target: &'a mut i16) -> Self
pub fn shorts(self, name: &'a str, target: &'a mut [i16]) -> Self
pub fn ushort(self, name: &'a str, target: &'a mut u16) -> Self
pub fn ushorts(self, name: &'a str, target: &'a mut [u16]) -> Self
Source§impl<'input, 'a, const N: usize> ObjectBuilder<'input, 'a, N>
impl<'input, 'a, const N: usize> ObjectBuilder<'input, 'a, N>
pub fn real(self, name: &'a str, target: &'a mut f64) -> Self
pub fn reals(self, name: &'a str, target: &'a mut [f64]) -> Self
pub fn string(self, name: &'a str, target: &'a mut [u8]) -> Self
pub fn boolean(self, name: &'a str, target: &'a mut bool) -> Self
pub fn booleans(self, name: &'a str, target: &'a mut [bool]) -> Self
pub fn character(self, name: &'a str, target: &'a mut u8) -> Self
pub fn characters(self, name: &'a str, target: &'a mut [u8]) -> Self
Source§impl<'input, 'a, const N: usize> ObjectBuilder<'input, 'a, N>
impl<'input, 'a, const N: usize> ObjectBuilder<'input, 'a, N>
pub fn time(self, name: &'a str, target: &'a mut f64) -> Self
pub fn object(self, name: &'a str, attrs: &'a mut [Attr<'a>]) -> Self
pub fn array(self, name: &'a str, array: Array<'a>) -> Self
pub fn check(self, name: &'a str, expected: &'a str) -> Self
pub fn ignore_any(self) -> Self
pub fn read(self) -> Result<usize>
Trait Implementations§
Auto Trait Implementations§
impl<'input, 'a, const N: usize> Freeze for ObjectBuilder<'input, 'a, N>
impl<'input, 'a, const N: usize> !RefUnwindSafe for ObjectBuilder<'input, 'a, N>
impl<'input, 'a, const N: usize> !Send for ObjectBuilder<'input, 'a, N>
impl<'input, 'a, const N: usize> !Sync for ObjectBuilder<'input, 'a, N>
impl<'input, 'a, const N: usize> Unpin for ObjectBuilder<'input, 'a, N>
impl<'input, 'a, const N: usize> UnsafeUnpin for ObjectBuilder<'input, 'a, N>
impl<'input, 'a, const N: usize> !UnwindSafe for ObjectBuilder<'input, 'a, N>
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