pub struct IndexBuilder { /* private fields */ }Expand description
Builds a GcodeIndex from a file streamed into it, a piece at a time,
in one pass: the GcodeSink the printer port’s whole-file read feeds.
Implementations§
Source§impl IndexBuilder
impl IndexBuilder
Sourcepub fn spooling(path: PathBuf) -> Result<Self>
pub fn spooling(path: PathBuf) -> Result<Self>
A builder that has read nothing and copies every byte it is given to
a spool file at path, created or truncated now, which the index it
builds reads each layer’s toolpath back from.
§Errors
The filesystem’s own error when the file cannot be created.
Sourcepub fn finish(self) -> GcodeIndex
pub fn finish(self) -> GcodeIndex
The index of everything read, the file’s last line counting whether or not it ended in a newline.
Trait Implementations§
Source§impl Debug for IndexBuilder
impl Debug for IndexBuilder
Source§impl Default for IndexBuilder
impl Default for IndexBuilder
Source§impl GcodeSink for IndexBuilder
impl GcodeSink for IndexBuilder
Auto Trait Implementations§
impl Forget for IndexBuilder
impl Freeze for IndexBuilder
impl Move for IndexBuilder
impl RefUnwindSafe for IndexBuilder
impl Send for IndexBuilder
impl Sync for IndexBuilder
impl Unpin for IndexBuilder
impl UnsafeUnpin for IndexBuilder
impl UnwindSafe for IndexBuilder
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