[−][src]Trait opencv::core::VectorTrait
Common interface for all C++ vector types generated by the crate
You'll need to import this trait to use any of the C++ vector wrappers, usually imported as part of the prelude.
Associated Types
type Arg
Required methods
fn with_capacity(capacity: size_t) -> Self
fn push(&mut self, val: Self::Arg)
Add new element
fn insert(&mut self, index: size_t, val: Self::Arg) -> Result<()>
Insert a new element at the specified index
fn set(&mut self, index: size_t, val: Self::Arg) -> Result<()>
Set element at the specified index
unsafe fn set_unchecked(&mut self, index: size_t, val: Self::Arg)
Same as set()
but without bounds checking
Provided methods
fn from_iter(s: impl IntoIterator<Item = Self::Arg>) -> Self
Create a Vector from iterator
Implementors
impl<'i> VectorTrait<'i> for Vector<Target>
[src]
type Arg = Target
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Target)
[src]
fn insert(&mut self, index: size_t, val: Target) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Target) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Target)
[src]
impl<'i> VectorTrait<'i> for Vector<FlannIndexType>
[src]
type Arg = FlannIndexType
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: FlannIndexType)
[src]
fn insert(&mut self, index: size_t, val: FlannIndexType) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: FlannIndexType) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: FlannIndexType)
[src]
impl<'i> VectorTrait<'i> for Vector<VideoCaptureAPIs>
[src]
type Arg = VideoCaptureAPIs
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: VideoCaptureAPIs)
[src]
fn insert(&mut self, index: size_t, val: VideoCaptureAPIs) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: VideoCaptureAPIs) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: VideoCaptureAPIs)
[src]
impl<'i> VectorTrait<'i> for Vector<bool>
[src]
type Arg = bool
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: bool)
[src]
fn insert(&mut self, index: size_t, val: bool) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: bool) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: bool)
[src]
impl<'i> VectorTrait<'i> for Vector<f32>
[src]
type Arg = f32
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: f32)
[src]
fn insert(&mut self, index: size_t, val: f32) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: f32) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: f32)
[src]
impl<'i> VectorTrait<'i> for Vector<f64>
[src]
type Arg = f64
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: f64)
[src]
fn insert(&mut self, index: size_t, val: f64) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: f64) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: f64)
[src]
impl<'i> VectorTrait<'i> for Vector<i32>
[src]
type Arg = i32
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: i32)
[src]
fn insert(&mut self, index: size_t, val: i32) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: i32) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: i32)
[src]
impl<'i> VectorTrait<'i> for Vector<i8>
[src]
type Arg = i8
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: i8)
[src]
fn insert(&mut self, index: size_t, val: i8) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: i8) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: i8)
[src]
impl<'i> VectorTrait<'i> for Vector<u8>
[src]
type Arg = u8
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: u8)
[src]
fn insert(&mut self, index: size_t, val: u8) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: u8) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: u8)
[src]
impl<'i> VectorTrait<'i> for Vector<DMatch>
[src]
type Arg = DMatch
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: DMatch)
[src]
fn insert(&mut self, index: size_t, val: DMatch) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: DMatch) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: DMatch)
[src]
impl<'i> VectorTrait<'i> for Vector<KeyPoint>
[src]
type Arg = KeyPoint
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: KeyPoint)
[src]
fn insert(&mut self, index: size_t, val: KeyPoint) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: KeyPoint) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: KeyPoint)
[src]
impl<'i> VectorTrait<'i> for Vector<Mat>
[src]
type Arg = Mat
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Mat)
[src]
fn insert(&mut self, index: size_t, val: Mat) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Mat) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Mat)
[src]
impl<'i> VectorTrait<'i> for Vector<PlatformInfo>
[src]
type Arg = PlatformInfo
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: PlatformInfo)
[src]
fn insert(&mut self, index: size_t, val: PlatformInfo) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: PlatformInfo) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: PlatformInfo)
[src]
impl<'i> VectorTrait<'i> for Vector<Ptr<BackendNode>>
[src]
type Arg = Ptr<BackendNode>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Ptr<BackendNode>)
[src]
fn insert(&mut self, index: size_t, val: Ptr<BackendNode>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Ptr<BackendNode>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Ptr<BackendNode>)
[src]
impl<'i> VectorTrait<'i> for Vector<Ptr<Layer>>
[src]
type Arg = Ptr<Layer>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Ptr<Layer>)
[src]
fn insert(&mut self, index: size_t, val: Ptr<Layer>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Ptr<Layer>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Ptr<Layer>)
[src]
impl<'i> VectorTrait<'i> for Vector<Ptr<dyn BackendWrapper>>
[src]
type Arg = Ptr<dyn BackendWrapper>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Ptr<dyn BackendWrapper>)
[src]
fn insert(&mut self, index: size_t, val: Ptr<dyn BackendWrapper>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Ptr<dyn BackendWrapper>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Ptr<dyn BackendWrapper>)
[src]
impl<'i> VectorTrait<'i> for Vector<Range>
[src]
type Arg = Range
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Range)
[src]
fn insert(&mut self, index: size_t, val: Range) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Range) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Range)
[src]
impl<'i> VectorTrait<'i> for Vector<RotatedRect>
[src]
type Arg = RotatedRect
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: RotatedRect)
[src]
fn insert(&mut self, index: size_t, val: RotatedRect) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: RotatedRect) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: RotatedRect)
[src]
impl<'i> VectorTrait<'i> for Vector<UMat>
[src]
type Arg = UMat
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: UMat)
[src]
fn insert(&mut self, index: size_t, val: UMat) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: UMat) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: UMat)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<f64>>
[src]
type Arg = Vector<f64>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<f64>)
[src]
fn insert(&mut self, index: size_t, val: Vector<f64>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<f64>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<f64>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<i32>>
[src]
type Arg = Vector<i32>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<i32>)
[src]
fn insert(&mut self, index: size_t, val: Vector<i32>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<i32>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<i32>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<i8>>
[src]
type Arg = Vector<i8>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<i8>)
[src]
fn insert(&mut self, index: size_t, val: Vector<i8>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<i8>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<i8>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<u8>>
[src]
type Arg = Vector<u8>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<u8>)
[src]
fn insert(&mut self, index: size_t, val: Vector<u8>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<u8>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<u8>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<DMatch>>
[src]
type Arg = Vector<DMatch>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<DMatch>)
[src]
fn insert(&mut self, index: size_t, val: Vector<DMatch>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<DMatch>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<DMatch>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<KeyPoint>>
[src]
type Arg = Vector<KeyPoint>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<KeyPoint>)
[src]
fn insert(&mut self, index: size_t, val: Vector<KeyPoint>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<KeyPoint>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<KeyPoint>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<Mat>>
[src]
type Arg = Vector<Mat>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<Mat>)
[src]
fn insert(&mut self, index: size_t, val: Vector<Mat>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<Mat>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<Mat>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<Range>>
[src]
type Arg = Vector<Range>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<Range>)
[src]
fn insert(&mut self, index: size_t, val: Vector<Range>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<Range>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<Range>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<KeyLine>>
[src]
type Arg = Vector<KeyLine>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<KeyLine>)
[src]
fn insert(&mut self, index: size_t, val: Vector<KeyLine>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<KeyLine>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<KeyLine>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<ERStat>>
[src]
type Arg = Vector<ERStat>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<ERStat>)
[src]
fn insert(&mut self, index: size_t, val: Vector<ERStat>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<ERStat>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<ERStat>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<Point>>
[src]
type Arg = Vector<Point>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<Point>)
[src]
fn insert(&mut self, index: size_t, val: Vector<Point>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<Point>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<Point>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<Point2f>>
[src]
type Arg = Vector<Point2f>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<Point2f>)
[src]
fn insert(&mut self, index: size_t, val: Vector<Point2f>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<Point2f>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<Point2f>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<Point3d>>
[src]
type Arg = Vector<Point3d>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<Point3d>)
[src]
fn insert(&mut self, index: size_t, val: Vector<Point3d>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<Point3d>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<Point3d>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<Point3f>>
[src]
type Arg = Vector<Point3f>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<Point3f>)
[src]
fn insert(&mut self, index: size_t, val: Vector<Point3f>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<Point3f>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<Point3f>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<Point3i>>
[src]
type Arg = Vector<Point3i>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<Point3i>)
[src]
fn insert(&mut self, index: size_t, val: Vector<Point3i>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<Point3i>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<Point3i>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<Vec2i>>
[src]
type Arg = Vector<Vec2i>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<Vec2i>)
[src]
fn insert(&mut self, index: size_t, val: Vector<Vec2i>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<Vec2i>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<Vec2i>)
[src]
impl<'i> VectorTrait<'i> for Vector<Vector<MatShape>>
[src]
type Arg = Vector<MatShape>
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: Vector<MatShape>)
[src]
fn insert(&mut self, index: size_t, val: Vector<MatShape>) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: Vector<MatShape>) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: Vector<MatShape>)
[src]
impl<'i> VectorTrait<'i> for Vector<DPMDetector_ObjectDetection>
[src]
type Arg = DPMDetector_ObjectDetection
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: DPMDetector_ObjectDetection)
[src]
fn insert(
&mut self,
index: size_t,
val: DPMDetector_ObjectDetection
) -> Result<()>
[src]
&mut self,
index: size_t,
val: DPMDetector_ObjectDetection
) -> Result<()>
fn set(&mut self, index: size_t, val: DPMDetector_ObjectDetection) -> Result<()>
[src]
unsafe fn set_unchecked(
&mut self,
index: size_t,
val: DPMDetector_ObjectDetection
)
[src]
&mut self,
index: size_t,
val: DPMDetector_ObjectDetection
)
impl<'i> VectorTrait<'i> for Vector<FacemarkAAM_Config>
[src]
type Arg = FacemarkAAM_Config
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: FacemarkAAM_Config)
[src]
fn insert(&mut self, index: size_t, val: FacemarkAAM_Config) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: FacemarkAAM_Config) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: FacemarkAAM_Config)
[src]
impl<'i> VectorTrait<'i> for Vector<FacemarkAAM_Model_Texture>
[src]
type Arg = FacemarkAAM_Model_Texture
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: FacemarkAAM_Model_Texture)
[src]
fn insert(
&mut self,
index: size_t,
val: FacemarkAAM_Model_Texture
) -> Result<()>
[src]
&mut self,
index: size_t,
val: FacemarkAAM_Model_Texture
) -> Result<()>
fn set(&mut self, index: size_t, val: FacemarkAAM_Model_Texture) -> Result<()>
[src]
unsafe fn set_unchecked(
&mut self,
index: size_t,
val: FacemarkAAM_Model_Texture
)
[src]
&mut self,
index: size_t,
val: FacemarkAAM_Model_Texture
)
impl<'i> VectorTrait<'i> for Vector<KeyLine>
[src]
type Arg = KeyLine
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: KeyLine)
[src]
fn insert(&mut self, index: size_t, val: KeyLine) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: KeyLine) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: KeyLine)
[src]
impl<'i> VectorTrait<'i> for Vector<DTrees_Node>
[src]
type Arg = DTrees_Node
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: DTrees_Node)
[src]
fn insert(&mut self, index: size_t, val: DTrees_Node) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: DTrees_Node) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: DTrees_Node)
[src]
impl<'i> VectorTrait<'i> for Vector<DTrees_Split>
[src]
type Arg = DTrees_Split
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: DTrees_Split)
[src]
fn insert(&mut self, index: size_t, val: DTrees_Split) -> Result<()>
[src]
fn set(&mut self, index: size_t, val: DTrees_Split) -> Result<()>
[src]
unsafe fn set_unchecked(&mut self, index: size_t, val: DTrees_Split)
[src]
impl<'i> VectorTrait<'i> for Vector<DetectionBasedTracker_ExtObject>
[src]
type Arg = DetectionBasedTracker_ExtObject
fn with_capacity(capacity: size_t) -> Self
[src]
fn push(&mut self, val: DetectionBasedTracker_ExtObject)
[src]
fn insert(
&mut self,
index: size_t,
val: DetectionBasedTracker_ExtObject
) -> Result<()>
[src]
&mut self,
index: size_t,
val: DetectionBasedTracker_ExtObject
) -> Result<()>
fn set(
&mut self,
index: size_t,
val: DetectionBasedTracker_ExtObject
) -> Result<()>
[src]
&mut self,
index: size_t,
val: DetectionBasedTracker_ExtObject
) -> Result<()>
unsafe fn set_unchecked(
&mut self,
index: size_t,
val: DetectionBasedTracker_ExtObject
)
[src]
&mut self,
index: size_t,
val: DetectionBasedTracker_ExtObject
)