Struct ion_rs::reader::ReaderBuilder
source · pub struct ReaderBuilder {}
Expand description
Configures and constructs new instances of Reader.
Implementations§
source§impl ReaderBuilder
impl ReaderBuilder
sourcepub fn new() -> ReaderBuilder
pub fn new() -> ReaderBuilder
Constructs a ReaderBuilder pre-populated with common default settings.
sourcepub fn build<'a, I: 'a + ToIonDataSource>(
self,
input: I
) -> IonResult<Reader<'a>>
pub fn build<'a, I: 'a + ToIonDataSource>( self, input: I ) -> IonResult<Reader<'a>>
Applies the specified settings to a new instance of Reader
. This process involves
reading some data from the beginning of input
to detect whether its content is
text or binary Ion. If this read operation fails, build
will return an Err
describing the problem it encountered.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ReaderBuilder
impl Send for ReaderBuilder
impl Sync for ReaderBuilder
impl Unpin for ReaderBuilder
impl UnwindSafe for ReaderBuilder
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