[−][src]Enum naut_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]
pub fn clone(&self) -> OperationId
[src]
pub 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.
pub fn from_str(s: &str) -> Result<OperationId, Self::Err>
[src]
impl Hash for OperationId
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub 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
pub fn iter() -> OperationIdIterⓘNotable traits for OperationIdIter
impl Iterator for OperationIdIter type Item = OperationId;
[src]
Notable traits for OperationIdIter
impl Iterator for OperationIdIter type Item = OperationId;
impl PartialEq<OperationId> for OperationId
[src]
pub fn eq(&self, other: &OperationId) -> bool
[src]
#[must_use]pub 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]
pub const VARIANTS: &'static [&'static str]
[src]
Auto Trait Implementations
impl RefUnwindSafe for OperationId
[src]
impl Send for OperationId
[src]
impl Sync for OperationId
[src]
impl Unpin for OperationId
[src]
impl UnwindSafe for OperationId
[src]
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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,