pub struct OrkFile {
pub container: Container,
pub design_entry: Option<String>,
pub document: Document,
pub attachments: Vec<Attachment>,
}Expand description
A .ork file, read: the container it came in, its design document, and everything else it
carried.
Fields§
§container: ContainerWhich of the three containers the bytes were packed in.
design_entry: Option<String>The archive entry the design came from, when it came from an archive.
document: DocumentThe design document.
attachments: Vec<Attachment>The archive’s other entries, in archive order: thrust curves, preview images, lookup tables. Held as stored, for the milestones that read them and for an export to put back.
Implementations§
Source§impl OrkFile
impl OrkFile
Sourcepub fn attachment(&self, name: &str) -> Option<&Attachment>
pub fn attachment(&self, name: &str) -> Option<&Attachment>
The attachment called name, if the archive had one.
Trait Implementations§
impl Eq for OrkFile
impl StructuralPartialEq for OrkFile
Auto Trait Implementations§
impl Freeze for OrkFile
impl RefUnwindSafe for OrkFile
impl Send for OrkFile
impl Sync for OrkFile
impl Unpin for OrkFile
impl UnsafeUnpin for OrkFile
impl UnwindSafe for OrkFile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.