pub struct CustomCollection { /* private fields */ }Implementations§
Source§impl CustomCollection
impl CustomCollection
pub fn new( collection: impl Into<String>, descriptions: Vec<CollectionDescription>, ) -> Self
pub fn from_path(path: impl AsRef<Path>) -> Result<Self, String>
pub fn from_package( package_name: &str, module_paths: impl IntoIterator<Item = impl AsRef<Path>>, ) -> Result<Self, String>
pub fn execute_command(&self, name: &str, options: &[SchematicOption]) -> String
pub fn execute_command_with_extra_flags( &self, name: &str, options: &[SchematicOption], extra_flags: Option<&str>, ) -> String
pub fn get_schematics(&self) -> Vec<Schematic>
Source§impl CustomCollection
impl CustomCollection
pub fn from_name_or_empty( name: &str, module_paths: impl IntoIterator<Item = impl AsRef<Path>>, ) -> Result<Self, String>
Trait Implementations§
Source§impl Clone for CustomCollection
impl Clone for CustomCollection
Source§fn clone(&self) -> CustomCollection
fn clone(&self) -> CustomCollection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomCollection
impl Debug for CustomCollection
Source§impl PartialEq for CustomCollection
impl PartialEq for CustomCollection
Source§fn eq(&self, other: &CustomCollection) -> bool
fn eq(&self, other: &CustomCollection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CustomCollection
impl StructuralPartialEq for CustomCollection
Auto Trait Implementations§
impl Freeze for CustomCollection
impl RefUnwindSafe for CustomCollection
impl Send for CustomCollection
impl Sync for CustomCollection
impl Unpin for CustomCollection
impl UnsafeUnpin for CustomCollection
impl UnwindSafe for CustomCollection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.