Skip to main content

LoopLayerTraitConst

Trait LoopLayerTraitConst 

Source
pub trait LoopLayerTraitConst: LayerTraitConst {
    // Required method
    fn as_raw_LoopLayer(&self) -> *const c_void;

    // Provided method
    fn cond(&self, arr: &impl ToInputArray) -> Result<bool> { ... }
}
Expand description

Constant methods for crate::dnn::LoopLayer

Required Methods§

Provided Methods§

Source

fn cond(&self, arr: &impl ToInputArray) -> Result<bool>

Evaluate loop condition tensor as a boolean flag.

The input tensor must contain exactly one element of an integral or floating type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§