Enum assembly_pack::txt::gen::Command
source · pub enum Command {
CurrentDirectory(String),
PackIndex(String),
ManifestFile(String),
Pack {
filename: String,
force_compression: bool,
},
AddDir(DirSpec),
RemDir(DirSpec),
AddFile {
filename: String,
},
RemFile {
filename: String,
},
EndPack,
}
Available on crate feature
pki-gen-txt
only.Expand description
A single command
Variants§
CurrentDirectory(String)
Change the current directory
PackIndex(String)
Set the name of the pack index file
ManifestFile(String)
Set the name of the manifest file
Pack
Initialize a new pack file
Fields
AddDir(DirSpec)
Include a directory
RemDir(DirSpec)
Exclude a directory
AddFile
Add a file
RemFile
Remove a file
EndPack
Complete the pack file
Trait Implementations§
source§impl PartialEq for Command
impl PartialEq for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more