pub struct Open {
pub mode: OpenMode,
pub format: Format,
pub page: Option<Page>,
/* private fields */
}Fields§
§mode: OpenMode§format: Format§page: Option<Page>The logical page of a LINAGE file opened OUTPUT or EXTEND.
Implementations§
Source§impl Open
impl Open
pub fn keyed(&mut self) -> Option<&mut Keyed>
pub fn is_keyed(&self) -> bool
pub fn read(&mut self, fixed_len: usize) -> Result<Record>
pub fn write(&mut self, bytes: &[u8]) -> Result<()>
Sourcepub fn print(
&mut self,
before: Option<Move>,
line: &str,
after: Option<Move>,
) -> Result<()>
pub fn print( &mut self, before: Option<Move>, line: &str, after: Option<Move>, ) -> Result<()>
Writes a line to a text DD where a printer would put it: after before, over a line not
yet ended when nothing moved the paper (after a carriage return, unless one of the two is
blank), then after. The first line of the DD takes one line of before as its own start,
as a printer at the top of a form prints a single-spaced first line on line 1.
pub fn close(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for Open
impl RefUnwindSafe for Open
impl Send for Open
impl Sync for Open
impl Unpin for Open
impl UnsafeUnpin for Open
impl UnwindSafe for Open
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