[][src]Struct opencv::core::Vector

pub struct Vector<T: VectorElement> where
    Self: VectorExtern<T>, 
{ /* fields omitted */ }

Wrapper for C++ std::vector

Implementations

impl Vector<DMatch>[src]

impl Vector<GpuMat>[src]

impl Vector<KeyPoint>[src]

impl Vector<Mat>[src]

impl Vector<PlatformInfo>[src]

impl Vector<Point_<i32>>[src]

impl Vector<Point_<f64>>[src]

impl Vector<Point_<f32>>[src]

impl Vector<Point3_<f64>>[src]

impl Vector<Point3_<f32>>[src]

impl Vector<Point3_<i32>>[src]

impl Vector<Range>[src]

impl Vector<Rect_<i32>>[src]

impl Vector<Rect_<f64>>[src]

impl Vector<RotatedRect>[src]

impl Vector<Scalar_<f64>>[src]

impl Vector<Size_<i32>>[src]

impl Vector<String>[src]

impl Vector<UMat>[src]

impl Vector<Vec2<i32>>[src]

impl Vector<Vec3<f64>>[src]

impl Vector<Vec3<f32>>[src]

impl Vector<Vec3<i32>>[src]

impl Vector<Vec4<f32>>[src]

impl Vector<Vec4<i32>>[src]

impl Vector<Vec6<f32>>[src]

impl Vector<Vector<DMatch>>[src]

impl Vector<Vector<KeyPoint>>[src]

impl Vector<Vector<Mat>>[src]

impl Vector<Vector<Point_<i32>>>[src]

impl Vector<Vector<Point_<f32>>>[src]

impl Vector<Vector<Point3_<f64>>>[src]

impl Vector<Vector<Point3_<f32>>>[src]

impl Vector<Vector<Point3_<i32>>>[src]

impl Vector<Vector<Range>>[src]

impl Vector<Vector<Vec2<i32>>>[src]

impl Vector<Vector<f64>>[src]

impl Vector<Vector<i32>>[src]

impl Vector<Vector<i8>>[src]

impl Vector<Vector<u8>>[src]

impl Vector<bool>[src]

impl Vector<f32>[src]

impl Vector<f64>[src]

impl Vector<i32>[src]

impl Vector<i8>[src]

impl Vector<usize>[src]

impl Vector<u8>[src]

impl Vector<Vector<i32>>[src]

impl Vector<Ptr<BackendNode>>[src]

impl Vector<Ptr<dyn BackendWrapper + 'static>>[src]

impl Vector<Ptr<Layer>>[src]

impl Vector<Target>[src]

impl Vector<Vector<Vector<i32>>>[src]

impl Vector<DPMDetector_ObjectDetection>[src]

impl Vector<FacemarkAAM_Config>[src]

impl Vector<FacemarkAAM_Model_Texture>[src]

impl Vector<FlannIndexType>[src]

impl Vector<KeyLine>[src]

impl Vector<Vector<KeyLine>>[src]

impl Vector<DTrees_Node>[src]

impl Vector<DTrees_Split>[src]

impl Vector<DetectionBasedTracker_ExtObject>[src]

impl Vector<DetectionROI>[src]

impl Vector<GPCPatchDescriptor>[src]

impl Vector<Linemod_Feature>[src]

impl Vector<Linemod_Match>[src]

impl Vector<Linemod_Template>[src]

impl Vector<Ptr<dyn Linemod_Modality + 'static>>[src]

impl Vector<Match>[src]

impl Vector<Detail_CameraParams>[src]

impl Vector<Detail_ImageFeatures>[src]

impl Vector<Detail_MatchesInfo>[src]

impl Vector<Ptr<Pose3D>>[src]

impl Vector<ERStat>[src]

impl Vector<Vector<ERStat>>[src]

impl Vector<CvHaarEvaluator_FeatureHaar>[src]

impl Vector<Ptr<dyn Tracker + 'static>>[src]

impl Vector<VideoCapture>[src]

impl Vector<VideoCaptureAPIs>[src]

impl Vector<Elliptic_KeyPoint>[src]

impl<T: VectorElement> Vector<T> where
    Self: VectorExtern<T>, 
[src]

pub fn new() -> Self[src]

Create a new Vector

pub fn with_capacity(capacity: size_t) -> Self[src]

Create a Vector with pre-defined capacity

pub fn from_iter<'a>(
    s: impl IntoIterator<Item = <T as OpenCVType<'a>>::Arg>
) -> Self
[src]

Create a Vector from iterator

pub fn len(&self) -> size_t[src]

Return Vector length

pub fn is_empty(&self) -> bool[src]

Return true if Vector is empty

pub fn capacity(&self) -> size_t[src]

Return Vector current capacity

pub fn shrink_to_fit(&mut self)[src]

Free extra capacity

pub fn reserve(&mut self, additional: size_t)[src]

Reserve capacity for additional new elements

pub fn clear(&mut self)[src]

Remove all elements

pub fn remove(&mut self, index: size_t) -> Result<()>[src]

Remove the element at the specified index

pub fn swap(&mut self, index1: size_t, index2: size_t) -> Result<()>[src]

Swap 2 elements in the Vector

pub fn push(&mut self, val: <T as OpenCVType>::Arg)[src]

Add new element

pub fn insert(
    &mut self,
    index: size_t,
    val: <T as OpenCVType>::Arg
) -> Result<()>
[src]

Insert a new element at the specified index

pub fn set(&mut self, index: size_t, val: <T as OpenCVType>::Arg) -> Result<()>[src]

Set element at the specified index

pub unsafe fn set_unchecked(
    &mut self,
    index: size_t,
    val: <T as OpenCVType>::Arg
)
[src]

Same as set() but without bounds checking

pub fn get(&self, index: size_t) -> Result<T>[src]

Get element at the specified index

pub unsafe fn get_unchecked(&self, index: size_t) -> T[src]

Same as get() but without bounds checking

pub fn iter(&self) -> VectorRefIterator<T>

Important traits for VectorRefIterator<'_, T>

impl<'_, T: VectorElement> Iterator for VectorRefIterator<'_, T> where
    Vector<T>: VectorExtern<T>, 
type Item = T;
[src]

pub fn as_slice(&self) -> &[T] where
    Self: VectorExternCopyNonBool<T>, 
[src]

pub fn as_mut_slice(&mut self) -> &mut [T] where
    Self: VectorExternCopyNonBool<T>, 
[src]

pub fn to_vec(&self) -> Vec<T>[src]

Trait Implementations

impl<T: VectorElement> AsRef<[T]> for Vector<T> where
    Self: VectorExtern<T> + VectorExternCopyNonBool<T>, 
[src]

impl<T: VectorElement> Borrow<[T]> for Vector<T> where
    Self: VectorExtern<T> + VectorExternCopyNonBool<T>, 
[src]

impl<T: VectorElement> Boxed for Vector<T> where
    Self: VectorExtern<T>, 
[src]

impl Clone for Vector<DMatch> where
    Self: VectorExtern<DMatch>, 
[src]

impl Clone for Vector<GpuMat> where
    Self: VectorExtern<GpuMat>, 
[src]

impl Clone for Vector<Rect> where
    Self: VectorExtern<Rect>, 
[src]

impl Clone for Vector<Rect2d> where
    Self: VectorExtern<Rect2d>, 
[src]

impl Clone for Vector<Scalar> where
    Self: VectorExtern<Scalar>, 
[src]

impl Clone for Vector<Size> where
    Self: VectorExtern<Size>, 
[src]

impl Clone for Vector<UMat> where
    Self: VectorExtern<UMat>, 
[src]

impl Clone for Vector<Vec2i> where
    Self: VectorExtern<Vec2i>, 
[src]

impl Clone for Vector<Vec3d> where
    Self: VectorExtern<Vec3d>, 
[src]

impl Clone for Vector<Vec3f> where
    Self: VectorExtern<Vec3f>, 
[src]

impl Clone for Vector<Vec3i> where
    Self: VectorExtern<Vec3i>, 
[src]

impl Clone for Vector<Vec4f> where
    Self: VectorExtern<Vec4f>, 
[src]

impl Clone for Vector<KeyPoint> where
    Self: VectorExtern<KeyPoint>, 
[src]

impl Clone for Vector<Vec4i> where
    Self: VectorExtern<Vec4i>, 
[src]

impl Clone for Vector<Vec6f> where
    Self: VectorExtern<Vec6f>, 
[src]

impl Clone for Vector<Vector<DMatch>> where
    Self: VectorExtern<Vector<DMatch>>, 
[src]

impl Clone for Vector<Vector<KeyPoint>> where
    Self: VectorExtern<Vector<KeyPoint>>, 
[src]

impl Clone for Vector<Vector<Mat>> where
    Self: VectorExtern<Vector<Mat>>, 
[src]

impl Clone for Vector<Vector<Point>> where
    Self: VectorExtern<Vector<Point>>, 
[src]

impl Clone for Vector<Vector<Point2f>> where
    Self: VectorExtern<Vector<Point2f>>, 
[src]

impl Clone for Vector<Vector<Point3d>> where
    Self: VectorExtern<Vector<Point3d>>, 
[src]

impl Clone for Vector<Vector<Point3f>> where
    Self: VectorExtern<Vector<Point3f>>, 
[src]

impl Clone for Vector<Vector<Point3i>> where
    Self: VectorExtern<Vector<Point3i>>, 
[src]

impl Clone for Vector<Mat> where
    Self: VectorExtern<Mat>, 
[src]

impl Clone for Vector<Vector<Vec2i>> where
    Self: VectorExtern<Vector<Vec2i>>, 
[src]

impl Clone for Vector<Vector<f64>> where
    Self: VectorExtern<Vector<f64>>, 
[src]

impl Clone for Vector<Vector<i32>> where
    Self: VectorExtern<Vector<i32>>, 
[src]

impl Clone for Vector<Vector<i8>> where
    Self: VectorExtern<Vector<i8>>, 
[src]

impl Clone for Vector<Vector<u8>> where
    Self: VectorExtern<Vector<u8>>, 
[src]

impl Clone for Vector<bool> where
    Self: VectorExtern<bool>, 
[src]

impl Clone for Vector<f32> where
    Self: VectorExtern<f32>, 
[src]

impl Clone for Vector<f64> where
    Self: VectorExtern<f64>, 
[src]

impl Clone for Vector<i32> where
    Self: VectorExtern<i32>, 
[src]

impl Clone for Vector<i8> where
    Self: VectorExtern<i8>, 
[src]

impl Clone for Vector<Point> where
    Self: VectorExtern<Point>, 
[src]

impl Clone for Vector<size_t> where
    Self: VectorExtern<size_t>, 
[src]

impl Clone for Vector<u8> where
    Self: VectorExtern<u8>, 
[src]

impl Clone for Vector<Target> where
    Self: VectorExtern<Target>, 
[src]

impl Clone for Vector<FlannIndexType> where
    Self: VectorExtern<FlannIndexType>, 
[src]

impl Clone for Vector<KeyLine> where
    Self: VectorExtern<KeyLine>, 
[src]

impl Clone for Vector<Vector<KeyLine>> where
    Self: VectorExtern<Vector<KeyLine>>, 
[src]

impl Clone for Vector<Linemod_Feature> where
    Self: VectorExtern<Linemod_Feature>, 
[src]

impl Clone for Vector<VideoCaptureAPIs> where
    Self: VectorExtern<VideoCaptureAPIs>, 
[src]

impl Clone for Vector<Point2d> where
    Self: VectorExtern<Point2d>, 
[src]

impl Clone for Vector<Point2f> where
    Self: VectorExtern<Point2f>, 
[src]

impl Clone for Vector<Point3d> where
    Self: VectorExtern<Point3d>, 
[src]

impl Clone for Vector<Point3f> where
    Self: VectorExtern<Point3f>, 
[src]

impl Clone for Vector<Point3i> where
    Self: VectorExtern<Point3i>, 
[src]

impl<T: VectorElement + Debug> Debug for Vector<T> where
    Self: VectorExtern<T>, 
[src]

impl<T: VectorElement> Default for Vector<T> where
    Self: VectorExtern<T>, 
[src]

impl<T: VectorElement> Drop for Vector<T> where
    Self: VectorExtern<T>, 
[src]

impl<'a, T: VectorElement> Extend<<T as OpenCVType<'a>>::Arg> for Vector<T> where
    Self: VectorExtern<T>, 
[src]

impl<T: VectorElement> From<Vector<T>> for Vec<T> where
    Vector<T>: VectorExtern<T>, 
[src]

impl<'a, T: VectorElement> FromIterator<<T as OpenCVType<'a>>::Arg> for Vector<T> where
    Self: VectorExtern<T>, 
[src]

impl<T: VectorElement> IntoIterator for Vector<T> where
    Vector<T>: VectorExtern<T>, 
[src]

type Item = T

The type of the elements being iterated over.

type IntoIter = VectorIterator<T>

Which kind of iterator are we turning this into?

impl<'v, T: VectorElement> IntoIterator for &'v Vector<T> where
    Vector<T>: VectorExtern<T>, 
[src]

type Item = T

The type of the elements being iterated over.

type IntoIter = VectorRefIterator<'v, T>

Which kind of iterator are we turning this into?

impl Send for Vector<DMatch>[src]

impl Send for Vector<GpuMat>[src]

impl Send for Vector<Point3i>[src]

impl Send for Vector<Range>[src]

impl Send for Vector<Rect>[src]

impl Send for Vector<Rect2d>[src]

impl Send for Vector<RotatedRect>[src]

impl Send for Vector<Scalar>[src]

impl Send for Vector<Size>[src]

impl Send for Vector<String>[src]

impl Send for Vector<UMat>[src]

impl Send for Vector<Vec2i>[src]

impl Send for Vector<KeyPoint>[src]

impl Send for Vector<Vec3d>[src]

impl Send for Vector<Vec3f>[src]

impl Send for Vector<Vec3i>[src]

impl Send for Vector<Vec4f>[src]

impl Send for Vector<Vec4i>[src]

impl Send for Vector<Vec6f>[src]

impl Send for Vector<Vector<DMatch>>[src]

impl Send for Vector<Vector<KeyPoint>>[src]

impl Send for Vector<Vector<Mat>>[src]

impl Send for Vector<Vector<Point>>[src]

impl Send for Vector<Mat>[src]

impl Send for Vector<Vector<Point2f>>[src]

impl Send for Vector<Vector<Point3d>>[src]

impl Send for Vector<Vector<Point3f>>[src]

impl Send for Vector<Vector<Point3i>>[src]

impl Send for Vector<Vector<Range>>[src]

impl Send for Vector<Vector<Vec2i>>[src]

impl Send for Vector<Vector<f64>>[src]

impl Send for Vector<Vector<i32>>[src]

impl Send for Vector<Vector<i8>>[src]

impl Send for Vector<Vector<u8>>[src]

impl Send for Vector<PlatformInfo>[src]

impl Send for Vector<bool>[src]

impl Send for Vector<f32>[src]

impl Send for Vector<f64>[src]

impl Send for Vector<i32>[src]

impl Send for Vector<i8>[src]

impl Send for Vector<size_t>[src]

impl Send for Vector<u8>[src]

impl Send for Vector<Ptr<BackendNode>>[src]

impl Send for Vector<Ptr<dyn BackendWrapper>>[src]

impl Send for Vector<Ptr<Layer>>[src]

impl Send for Vector<Point>[src]

impl Send for Vector<Target>[src]

impl Send for Vector<Vector<MatShape>>[src]

impl Send for Vector<DPMDetector_ObjectDetection>[src]

impl Send for Vector<FacemarkAAM_Config>[src]

impl Send for Vector<FacemarkAAM_Model_Texture>[src]

impl Send for Vector<FlannIndexType>[src]

impl Send for Vector<KeyLine>[src]

impl Send for Vector<Vector<KeyLine>>[src]

impl Send for Vector<DTrees_Node>[src]

impl Send for Vector<DTrees_Split>[src]

impl Send for Vector<Point2d>[src]

impl Send for Vector<DetectionBasedTracker_ExtObject>[src]

impl Send for Vector<DetectionROI>[src]

impl Send for Vector<GPCPatchDescriptor>[src]

impl Send for Vector<Linemod_Feature>[src]

impl Send for Vector<Linemod_Match>[src]

impl Send for Vector<Linemod_Template>[src]

impl Send for Vector<Ptr<dyn Linemod_Modality>>[src]

impl Send for Vector<Match>[src]

impl Send for Vector<Detail_CameraParams>[src]

impl Send for Vector<Detail_ImageFeatures>[src]

impl Send for Vector<Point2f>[src]

impl Send for Vector<Detail_MatchesInfo>[src]

impl Send for Vector<Pose3DPtr>[src]

impl Send for Vector<ERStat>[src]

impl Send for Vector<Vector<ERStat>>[src]

impl Send for Vector<CvHaarEvaluator_FeatureHaar>[src]

impl Send for Vector<Ptr<dyn Tracker>>[src]

impl Send for Vector<VideoCapture>[src]

impl Send for Vector<VideoCaptureAPIs>[src]

impl Send for Vector<Elliptic_KeyPoint>[src]

impl Send for Vector<Point3d>[src]

impl Send for Vector<Point3f>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Vector<T> where
    T: RefUnwindSafe

impl<T> !Send for Vector<T>

impl<T> !Sync for Vector<T>

impl<T> Unpin for Vector<T> where
    T: Unpin

impl<T> UnwindSafe for Vector<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.