pub struct ReaderBuilder<R> { /* private fields */ }Expand description
Build a Reader with custom settings.
Implementations§
Source§impl<R: Read> ReaderBuilder<R>
impl<R: Read> ReaderBuilder<R>
Sourcepub fn new(reader: R) -> Self
pub fn new(reader: R) -> Self
Create a ReaderBuilder with default settings based on the PGN
standard.
Sourcepub fn set_supported_tag_line_length(self, bytes: usize) -> Self
pub fn set_supported_tag_line_length(self, bytes: usize) -> Self
Configure the buffer to support at least the given tag line length.
Defaults to 255 bytes.
Sourcepub fn set_supported_comment_length(self, bytes: usize) -> Self
pub fn set_supported_comment_length(self, bytes: usize) -> Self
Configure the buffer to support at least the given comment length.
Longer comments will be split into one or more
calls to Visitor::partial_comment() followed by a final call to
Visitor::comment().
Defaults to 255 bytes.
Trait Implementations§
Source§impl<R: Clone> Clone for ReaderBuilder<R>
impl<R: Clone> Clone for ReaderBuilder<R>
Source§fn clone(&self) -> ReaderBuilder<R>
fn clone(&self) -> ReaderBuilder<R>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<R> Freeze for ReaderBuilder<R>where
R: Freeze,
impl<R> RefUnwindSafe for ReaderBuilder<R>where
R: RefUnwindSafe,
impl<R> Send for ReaderBuilder<R>where
R: Send,
impl<R> Sync for ReaderBuilder<R>where
R: Sync,
impl<R> Unpin for ReaderBuilder<R>where
R: Unpin,
impl<R> UnwindSafe for ReaderBuilder<R>where
R: UnwindSafe,
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