[−][src]Enum sic_cli_ops::operations::OperationId
The enumeration of all supported operations.
Variants
Implementations
impl OperationId
[src]
pub fn as_str(self) -> &'static str
[src]
A string representation for each operation.
pub fn try_from_name(input: &str) -> TResult<Self>
[src]
pub fn takes_number_of_arguments(self) -> usize
[src]
Provides the number of arguments an operation takes.
Used to unify arguments together.
E.g. (without accounting for the requirement of having incremental indices as well),
say we receive for resize the values 10, 20, 100 and 100. With the number of values we know
that each resize operation takes two arguments, not four. So it could be that there are
two operations, namely resize 10 20
and resize 100 100
. We do need to take some other
conditions into account, but they are not relevant for this particular method =).
impl OperationId
[src]
pub fn create_instruction<'a, T>(
self,
inputs: T
) -> Result<Instr, SicCliOpsError> where
T: IntoIterator,
T::Item: Into<Describable<'a>> + Debug,
[src]
self,
inputs: T
) -> Result<Instr, SicCliOpsError> where
T: IntoIterator,
T::Item: Into<Describable<'a>> + Debug,
Constructs instructions for image operations which are taken as input by the image engine.
Trait Implementations
impl AsStaticRef<str> for OperationId
[src]
impl Clone for OperationId
[src]
fn clone(&self) -> OperationId
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for OperationId
[src]
impl Debug for OperationId
[src]
impl Eq for OperationId
[src]
impl FromStr for OperationId
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<OperationId, Self::Err>
[src]
impl Hash for OperationId
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IntoEnumIterator for OperationId
[src]
type Iterator = OperationIdIter
fn iter() -> OperationIdIter
[src]
impl PartialEq<OperationId> for OperationId
[src]
fn eq(&self, other: &OperationId) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for OperationId
[src]
impl StructuralPartialEq for OperationId
[src]
impl VariantNames for OperationId
[src]
const VARIANTS: &'static [&'static str]
[src]
Auto Trait Implementations
impl RefUnwindSafe for OperationId
impl Send for OperationId
impl Sync for OperationId
impl Unpin for OperationId
impl UnwindSafe for OperationId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,