pub struct ConcatOperation<'c> { /* private fields */ }
Expand description
A concat
operation. Concatenates two shapes.
Creates a shape whose dimensions consist of first the dimensions from lhs
followed by the dimensions of rhs
.
Example: concat([2,3], [4,5]) -> [2,3,4,5] concat([], []) -> [] concat([], [4,5,6]) -> [4,5,6]
Implementations§
source§impl<'c> ConcatOperation<'c>
impl<'c> ConcatOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> ConcatOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ConcatOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn lhs(&self) -> Result<Value<'c, '_>, Error>
pub fn rhs(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<ConcatOperation<'c>> for Operation<'c>
impl<'c> From<ConcatOperation<'c>> for Operation<'c>
source§fn from(operation: ConcatOperation<'c>) -> Self
fn from(operation: ConcatOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ConcatOperation<'c>
impl<'c> !Send for ConcatOperation<'c>
impl<'c> !Sync for ConcatOperation<'c>
impl<'c> Unpin for ConcatOperation<'c>
impl<'c> UnwindSafe for ConcatOperation<'c>
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