pub struct DataInputStreamBuilder { /* private fields */ }Expand description
A builder-pattern type to construct DataInputStream objects.
Implementations§
Source§impl DataInputStreamBuilder
impl DataInputStreamBuilder
pub fn byte_order(self, byte_order: DataStreamByteOrder) -> Self
pub fn newline_type(self, newline_type: DataStreamNewlineType) -> Self
pub fn buffer_size(self, buffer_size: u32) -> Self
pub fn base_stream(self, base_stream: &impl IsA<InputStream>) -> Self
pub fn close_base_stream(self, close_base_stream: bool) -> Self
Sourcepub fn build(self) -> DataInputStream
pub fn build(self) -> DataInputStream
Build the DataInputStream.
Auto Trait Implementations§
impl Freeze for DataInputStreamBuilder
impl RefUnwindSafe for DataInputStreamBuilder
impl !Send for DataInputStreamBuilder
impl !Sync for DataInputStreamBuilder
impl Unpin for DataInputStreamBuilder
impl UnwindSafe for DataInputStreamBuilder
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