Core modules: - probe.rs: ffprobe execution logic - parser.rs: JSON parsing logic - output.rs: Output formatting - lib.rs: Library interface - main.rs: CLI entry point Features: - Extract video metadata using ffprobe - Parse video/audio/subtitle streams - Save to JSON file - Console summary output Documentation: - Added QUICKSTART.md - Added ENVIRONMENT_SETUP_REPORT.md
88 lines
632 KiB
Plaintext
88 lines
632 KiB
Plaintext
{"$message_type":"diagnostic","message":"the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5589,"byte_end":5688,"line_start":165,"line_end":165,"column_start":4,"column_end":103,"is_primary":true,"text":[{"text":"\t\t\tfn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {","highlight_start":4,"highlight_end":103}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-6654702089584336080.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:165:4\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m165\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-6654702089584336080.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5510,"byte_end":5570,"line_start":163,"line_end":163,"column_start":39,"column_end":99,"is_primary":true,"text":[{"text":"\t\timpl $crate::core::ToInputArray for $crate::core::Vector<$crate::boxed_ref::BoxedRef<'_, $type>> {","highlight_start":39,"highlight_end":99}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-6654702089584336080.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:163:39\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m163\u001b[0m \u001b[1m\u001b[94m|\u001b[0m impl $crate::core::ToInputArray for $crate::core::Vector<$crate::boxed_ref::BoxedRef<'_, $type>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-6654702089584336080.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6204,"byte_end":6303,"line_start":183,"line_end":183,"column_start":4,"column_end":103,"is_primary":true,"text":[{"text":"\t\t\tfn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {","highlight_start":4,"highlight_end":103}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5769,"byte_end":5866,"line_start":170,"line_end":170,"column_start":3,"column_end":100,"is_primary":false,"text":[{"text":"\t\t$crate::input_array_ref_forward! { $crate::core::Vector<$crate::boxed_ref::BoxedRef<'_, $type>> }","highlight_start":3,"highlight_end":100}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6084,"byte_end":6120,"line_start":179,"line_end":179,"column_start":1,"column_end":37,"is_primary":false,"text":[{"text":"macro_rules! input_array_ref_forward {","highlight_start":1,"highlight_end":37}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-14695891245440010904.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:183:4\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m183\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-14695891245440010904.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6179,"byte_end":6185,"line_start":181,"line_end":181,"column_start":39,"column_end":45,"is_primary":true,"text":[{"text":"\t\timpl $crate::core::ToInputArray for &$type {","highlight_start":39,"highlight_end":45}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5769,"byte_end":5866,"line_start":170,"line_end":170,"column_start":3,"column_end":100,"is_primary":false,"text":[{"text":"\t\t$crate::input_array_ref_forward! { $crate::core::Vector<$crate::boxed_ref::BoxedRef<'_, $type>> }","highlight_start":3,"highlight_end":100}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6084,"byte_end":6120,"line_start":179,"line_end":179,"column_start":1,"column_end":37,"is_primary":false,"text":[{"text":"macro_rules! input_array_ref_forward {","highlight_start":1,"highlight_end":37}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-14695891245440010904.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:181:39\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m181\u001b[0m \u001b[1m\u001b[94m|\u001b[0m impl $crate::core::ToInputArray for &$type {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-14695891245440010904.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3971,"byte_end":4070,"line_start":117,"line_end":117,"column_start":4,"column_end":103,"is_primary":true,"text":[{"text":"\t\t\tfn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {","highlight_start":4,"highlight_end":103}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4240,"byte_end":4290,"line_start":126,"line_end":126,"column_start":3,"column_end":53,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $type, $const_cons }","highlight_start":3,"highlight_end":53}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:117:4\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m117\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_output_array` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5900,"byte_end":5927,"line_start":172,"line_end":172,"column_start":33,"column_end":60,"is_primary":true,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":33,"highlight_end":60}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:172:33\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m172\u001b[0m \u001b[1m\u001b[94m|\u001b[0m $crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6204,"byte_end":6303,"line_start":183,"line_end":183,"column_start":4,"column_end":103,"is_primary":true,"text":[{"text":"\t\t\tfn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {","highlight_start":4,"highlight_end":103}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4134,"byte_end":4176,"line_start":122,"line_end":122,"column_start":3,"column_end":45,"is_primary":false,"text":[{"text":"\t\t$crate::input_array_ref_forward! { $type }","highlight_start":3,"highlight_end":45}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4240,"byte_end":4290,"line_start":126,"line_end":126,"column_start":3,"column_end":53,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $type, $const_cons }","highlight_start":3,"highlight_end":53}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6084,"byte_end":6120,"line_start":179,"line_end":179,"column_start":1,"column_end":37,"is_primary":false,"text":[{"text":"macro_rules! input_array_ref_forward {","highlight_start":1,"highlight_end":37}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:183:4\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m183\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6179,"byte_end":6185,"line_start":181,"line_end":181,"column_start":39,"column_end":45,"is_primary":true,"text":[{"text":"\t\timpl $crate::core::ToInputArray for &$type {","highlight_start":39,"highlight_end":45}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4134,"byte_end":4176,"line_start":122,"line_end":122,"column_start":3,"column_end":45,"is_primary":false,"text":[{"text":"\t\t$crate::input_array_ref_forward! { $type }","highlight_start":3,"highlight_end":45}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4240,"byte_end":4290,"line_start":126,"line_end":126,"column_start":3,"column_end":53,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $type, $const_cons }","highlight_start":3,"highlight_end":53}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6084,"byte_end":6120,"line_start":179,"line_end":179,"column_start":1,"column_end":37,"is_primary":false,"text":[{"text":"macro_rules! input_array_ref_forward {","highlight_start":1,"highlight_end":37}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:181:39\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m181\u001b[0m \u001b[1m\u001b[94m|\u001b[0m impl $crate::core::ToInputArray for &$type {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4355,"byte_end":4463,"line_start":130,"line_end":130,"column_start":4,"column_end":112,"is_primary":true,"text":[{"text":"\t\t\tfn output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_OutputArray>> {","highlight_start":4,"highlight_end":112}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:130:4\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m130\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_OutputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_output_array` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4592,"byte_end":4711,"line_start":137,"line_end":137,"column_start":4,"column_end":123,"is_primary":true,"text":[{"text":"\t\t\tfn input_output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_InputOutputArray>> {","highlight_start":4,"highlight_end":123}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:137:4\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m137\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn input_output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_InputOutputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_output_array` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6633,"byte_end":6741,"line_start":197,"line_end":197,"column_start":4,"column_end":112,"is_primary":true,"text":[{"text":"\t\t\tfn output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_OutputArray>> {","highlight_start":4,"highlight_end":112}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4779,"byte_end":4822,"line_start":142,"line_end":142,"column_start":3,"column_end":46,"is_primary":false,"text":[{"text":"\t\t$crate::output_array_ref_forward! { $type }","highlight_start":3,"highlight_end":46}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::output_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6507,"byte_end":6544,"line_start":193,"line_end":193,"column_start":1,"column_end":38,"is_primary":false,"text":[{"text":"macro_rules! output_array_ref_forward {","highlight_start":1,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:197:4\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m197\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_OutputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::output_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6604,"byte_end":6614,"line_start":195,"line_end":195,"column_start":40,"column_end":50,"is_primary":true,"text":[{"text":"\t\timpl $crate::core::ToOutputArray for &mut $type {","highlight_start":40,"highlight_end":50}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4779,"byte_end":4822,"line_start":142,"line_end":142,"column_start":3,"column_end":46,"is_primary":false,"text":[{"text":"\t\t$crate::output_array_ref_forward! { $type }","highlight_start":3,"highlight_end":46}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::output_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6507,"byte_end":6544,"line_start":193,"line_end":193,"column_start":1,"column_end":38,"is_primary":false,"text":[{"text":"macro_rules! output_array_ref_forward {","highlight_start":1,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:195:40\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m195\u001b[0m \u001b[1m\u001b[94m|\u001b[0m impl $crate::core::ToOutputArray for &mut $type {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::output_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6854,"byte_end":6973,"line_start":204,"line_end":204,"column_start":4,"column_end":123,"is_primary":true,"text":[{"text":"\t\t\tfn input_output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_InputOutputArray>> {","highlight_start":4,"highlight_end":123}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4779,"byte_end":4822,"line_start":142,"line_end":142,"column_start":3,"column_end":46,"is_primary":false,"text":[{"text":"\t\t$crate::output_array_ref_forward! { $type }","highlight_start":3,"highlight_end":46}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::output_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6507,"byte_end":6544,"line_start":193,"line_end":193,"column_start":1,"column_end":38,"is_primary":false,"text":[{"text":"macro_rules! output_array_ref_forward {","highlight_start":1,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:204:4\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m204\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn input_output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_InputOutputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::output_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6825,"byte_end":6835,"line_start":202,"line_end":202,"column_start":45,"column_end":55,"is_primary":true,"text":[{"text":"\t\timpl $crate::core::ToInputOutputArray for &mut $type {","highlight_start":45,"highlight_end":55}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4779,"byte_end":4822,"line_start":142,"line_end":142,"column_start":3,"column_end":46,"is_primary":false,"text":[{"text":"\t\t$crate::output_array_ref_forward! { $type }","highlight_start":3,"highlight_end":46}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::output_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6507,"byte_end":6544,"line_start":193,"line_end":193,"column_start":1,"column_end":38,"is_primary":false,"text":[{"text":"macro_rules! output_array_ref_forward {","highlight_start":1,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:202:45\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m202\u001b[0m \u001b[1m\u001b[94m|\u001b[0m impl $crate::core::ToInputOutputArray for &mut $type {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::output_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<rect::Rect_<f64>>: vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":13289,"byte_end":13315,"line_start":179,"line_end":179,"column_start":42,"column_end":68,"is_primary":true,"text":[{"text":"\tpub fn nms_boxes_batched_1_def(bboxes: &core::Vector<core::Rect2d>, scores: &core::Vector<f32>, class_ids: &core::Vector<i32>, score_threshold: f32, nms_threshold: f32, indices: &mut core::Vector<i32>) -> Result<()> {","highlight_start":42,"highlight_end":68}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not implemented for `vector::Vector<rect::Rect_<f64>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<rect::Rect_<f64>>: vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:179:42\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m179\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn nms_boxes_batched_1_def(bboxes: &core::Vector<core::Rect2d>, scores: &core::Vector<f32>, class_ids: &core::Vector<i32>, score_thr\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not implemented for `vector::Vector<rect::Rect_<f64>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<rect::Rect_<f64>>: vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":14025,"byte_end":14051,"line_start":191,"line_end":191,"column_start":38,"column_end":64,"is_primary":true,"text":[{"text":"\tpub fn nms_boxes_batched_1(bboxes: &core::Vector<core::Rect2d>, scores: &core::Vector<f32>, class_ids: &core::Vector<i32>, score_threshold: f32, nms_threshold: f32, indices: &mut core::Vector<i32>, eta: f32, top_k: i32) -> Result<()> {","highlight_start":38,"highlight_end":64}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not implemented for `vector::Vector<rect::Rect_<f64>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<rect::Rect_<f64>>: vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:191:38\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m191\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn nms_boxes_batched_1(bboxes: &core::Vector<core::Rect2d>, scores: &core::Vector<f32>, class_ids: &core::Vector<i32>, score_thresho\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not implemented for `vector::Vector<rect::Rect_<f64>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<rect::Rect_<f64>>: vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":18067,"byte_end":18093,"line_start":253,"line_end":253,"column_start":36,"column_end":62,"is_primary":true,"text":[{"text":"\tpub fn nms_boxes_f64_def(bboxes: &core::Vector<core::Rect2d>, scores: &core::Vector<f32>, score_threshold: f32, nms_threshold: f32, indices: &mut core::Vector<i32>) -> Result<()> {","highlight_start":36,"highlight_end":62}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not implemented for `vector::Vector<rect::Rect_<f64>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<rect::Rect_<f64>>: vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:253:36\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m253\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn nms_boxes_f64_def(bboxes: &core::Vector<core::Rect2d>, scores: &core::Vector<f32>, score_threshold: f32, nms_threshold: f32, indi\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not implemented for `vector::Vector<rect::Rect_<f64>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<rect::Rect_<f64>>: vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":18708,"byte_end":18734,"line_start":265,"line_end":265,"column_start":32,"column_end":58,"is_primary":true,"text":[{"text":"\tpub fn nms_boxes_f64(bboxes: &core::Vector<core::Rect2d>, scores: &core::Vector<f32>, score_threshold: f32, nms_threshold: f32, indices: &mut core::Vector<i32>, eta: f32, top_k: i32) -> Result<()> {","highlight_start":32,"highlight_end":58}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not implemented for `vector::Vector<rect::Rect_<f64>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<rect::Rect_<f64>>: vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:265:32\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m265\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn nms_boxes_f64(bboxes: &core::Vector<core::Rect2d>, scores: &core::Vector<f32>, score_threshold: f32, nms_threshold: f32, indices:\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<rect::Rect_<f64>>` is not implemented for `vector::Vector<rect::Rect_<f64>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5604,"byte_end":5609,"line_start":165,"line_end":165,"column_start":19,"column_end":24,"is_primary":true,"text":[{"text":"\t\t\tfn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {","highlight_start":19,"highlight_end":24}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-6654702089584336080.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:165:19\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m165\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-6654702089584336080.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6219,"byte_end":6224,"line_start":183,"line_end":183,"column_start":19,"column_end":24,"is_primary":true,"text":[{"text":"\t\t\tfn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {","highlight_start":19,"highlight_end":24}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5769,"byte_end":5866,"line_start":170,"line_end":170,"column_start":3,"column_end":100,"is_primary":false,"text":[{"text":"\t\t$crate::input_array_ref_forward! { $crate::core::Vector<$crate::boxed_ref::BoxedRef<'_, $type>> }","highlight_start":3,"highlight_end":100}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6084,"byte_end":6120,"line_start":179,"line_end":179,"column_start":1,"column_end":37,"is_primary":false,"text":[{"text":"macro_rules! input_array_ref_forward {","highlight_start":1,"highlight_end":37}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-14695891245440010904.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:183:19\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m183\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-14695891245440010904.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3987,"byte_end":3991,"line_start":117,"line_end":117,"column_start":20,"column_end":24,"is_primary":true,"text":[{"text":"\t\t\tfn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {","highlight_start":20,"highlight_end":24}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4240,"byte_end":4290,"line_start":126,"line_end":126,"column_start":3,"column_end":53,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $type, $const_cons }","highlight_start":3,"highlight_end":53}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:117:20\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m117\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_output_array` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6220,"byte_end":6224,"line_start":183,"line_end":183,"column_start":20,"column_end":24,"is_primary":true,"text":[{"text":"\t\t\tfn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {","highlight_start":20,"highlight_end":24}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4134,"byte_end":4176,"line_start":122,"line_end":122,"column_start":3,"column_end":45,"is_primary":false,"text":[{"text":"\t\t$crate::input_array_ref_forward! { $type }","highlight_start":3,"highlight_end":45}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4240,"byte_end":4290,"line_start":126,"line_end":126,"column_start":3,"column_end":53,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $type, $const_cons }","highlight_start":3,"highlight_end":53}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6084,"byte_end":6120,"line_start":179,"line_end":179,"column_start":1,"column_end":37,"is_primary":false,"text":[{"text":"macro_rules! input_array_ref_forward {","highlight_start":1,"highlight_end":37}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:183:20\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m183\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn input_array(&self) -> $crate::Result<$crate::boxed_ref::BoxedRef<'_, $crate::core::_InputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4376,"byte_end":4380,"line_start":130,"line_end":130,"column_start":25,"column_end":29,"is_primary":true,"text":[{"text":"\t\t\tfn output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_OutputArray>> {","highlight_start":25,"highlight_end":29}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:130:25\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m130\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_OutputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_output_array` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4619,"byte_end":4623,"line_start":137,"line_end":137,"column_start":31,"column_end":35,"is_primary":true,"text":[{"text":"\t\t\tfn input_output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_InputOutputArray>> {","highlight_start":31,"highlight_end":35}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:137:31\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m137\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn input_output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_InputOutputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_output_array` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6654,"byte_end":6658,"line_start":197,"line_end":197,"column_start":25,"column_end":29,"is_primary":true,"text":[{"text":"\t\t\tfn output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_OutputArray>> {","highlight_start":25,"highlight_end":29}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4779,"byte_end":4822,"line_start":142,"line_end":142,"column_start":3,"column_end":46,"is_primary":false,"text":[{"text":"\t\t$crate::output_array_ref_forward! { $type }","highlight_start":3,"highlight_end":46}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::output_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6507,"byte_end":6544,"line_start":193,"line_end":193,"column_start":1,"column_end":38,"is_primary":false,"text":[{"text":"macro_rules! output_array_ref_forward {","highlight_start":1,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:197:25\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m197\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_OutputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::output_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6881,"byte_end":6885,"line_start":204,"line_end":204,"column_start":31,"column_end":35,"is_primary":true,"text":[{"text":"\t\t\tfn input_output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_InputOutputArray>> {","highlight_start":31,"highlight_end":35}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4779,"byte_end":4822,"line_start":142,"line_end":142,"column_start":3,"column_end":46,"is_primary":false,"text":[{"text":"\t\t$crate::output_array_ref_forward! { $type }","highlight_start":3,"highlight_end":46}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::output_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6507,"byte_end":6544,"line_start":193,"line_end":193,"column_start":1,"column_end":38,"is_primary":false,"text":[{"text":"macro_rules! output_array_ref_forward {","highlight_start":1,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:204:31\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m204\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn input_output_array(&mut self) -> $crate::Result<$crate::boxed_ref::BoxedRefMut<'_, $crate::core::_InputOutputArray>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::output_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<VideoCapture>: vector::vector_extern::VectorExtern<VideoCapture>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/videoio.rs","byte_start":86925,"byte_end":86967,"line_start":1605,"line_end":1605,"column_start":29,"column_end":71,"is_primary":true,"text":[{"text":"\t\tpub fn wait_any(streams: &core::Vector<crate::videoio::VideoCapture>, ready_index: &mut core::Vector<i32>, timeout_ns: i64) -> Result<bool> {","highlight_start":29,"highlight_end":71}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<VideoCapture>` is not implemented for `vector::Vector<VideoCapture>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<VideoCapture>: vector::vector_extern::VectorExtern<VideoCapture>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/videoio.rs:1605:29\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1605\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn wait_any(streams: &core::Vector<crate::videoio::VideoCapture>, ready_index: &mut core::Vector<i32>, timeout_ns: i64) -> Result<b\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<VideoCapture>` is not implemented for `vector::Vector<VideoCapture>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<VideoCapture>: vector::vector_extern::VectorExtern<VideoCapture>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/videoio.rs","byte_start":88310,"byte_end":88352,"line_start":1633,"line_end":1633,"column_start":33,"column_end":75,"is_primary":true,"text":[{"text":"\t\tpub fn wait_any_def(streams: &core::Vector<crate::videoio::VideoCapture>, ready_index: &mut core::Vector<i32>) -> Result<bool> {","highlight_start":33,"highlight_end":75}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<VideoCapture>` is not implemented for `vector::Vector<VideoCapture>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<VideoCapture>: vector::vector_extern::VectorExtern<VideoCapture>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/videoio.rs:1633:33\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1633\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn wait_any_def(streams: &core::Vector<crate::videoio::VideoCapture>, ready_index: &mut core::Vector<i32>) -> Result<bool> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<VideoCapture>` is not implemented for `vector::Vector<VideoCapture>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<vector::Vector<f32>>: vector::vector_extern::VectorExtern<vector::Vector<f32>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":439305,"byte_end":439336,"line_start":11470,"line_end":11470,"column_start":39,"column_end":70,"is_primary":true,"text":[{"text":"\t\tfn try_quantize(&mut self, scales: &core::Vector<core::Vector<f32>>, zeropoints: &core::Vector<core::Vector<i32>>, params: &mut impl crate::dnn::LayerParamsTrait) -> Result<bool> {","highlight_start":39,"highlight_end":70}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<vector::Vector<f32>>` is not implemented for `vector::Vector<vector::Vector<f32>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<vector::Vector<f32>>: vector::vector_extern::VectorExtern<vector::Vector<f32>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:11470:39\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m11470\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn try_quantize(&mut self, scales: &core::Vector<core::Vector<f32>>, zeropoints: &core::Vector<core::Vector<i32>>, params: &mut impl cr\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<vector::Vector<f32>>` is not implemented for `vector::Vector<vector::Vector<f32>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `Vector<Ptr<BackendNode>>: VectorExtern<Ptr<BackendNode>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":446287,"byte_end":446335,"line_start":11619,"line_end":11619,"column_start":99,"column_end":147,"is_primary":true,"text":[{"text":"\t\tfn init_ngraph(&mut self, inputs: &core::Vector<core::Ptr<crate::dnn::BackendWrapper>>, nodes: &core::Vector<core::Ptr<crate::dnn::BackendNode>>) -> Result<core::Ptr<crate::dnn::BackendNode>> {","highlight_start":99,"highlight_end":147}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<manual::core::ptr::Ptr<BackendNode>>` is not implemented for `vector::Vector<manual::core::ptr::Ptr<BackendNode>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-16206489057855986019.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `Vector<Ptr<BackendNode>>: VectorExtern<Ptr<BackendNode>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:11619:99\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m11619\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0mdnn::BackendWrapper>>, nodes: &core::Vector<core::Ptr<crate::dnn::BackendNode>>) -> Result<core::Ptr<crate::dnn::BackendNode>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<manual::core::ptr::Ptr<BackendNode>>` is not implemented for `vector::Vector<manual::core::ptr::Ptr<BackendNode>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-16206489057855986019.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `Vector<Ptr<BackendNode>>: VectorExtern<Ptr<BackendNode>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":447638,"byte_end":447686,"line_start":11639,"line_end":11639,"column_start":98,"column_end":146,"is_primary":true,"text":[{"text":"\t\tfn init_webnn(&mut self, inputs: &core::Vector<core::Ptr<crate::dnn::BackendWrapper>>, nodes: &core::Vector<core::Ptr<crate::dnn::BackendNode>>) -> Result<core::Ptr<crate::dnn::BackendNode>> {","highlight_start":98,"highlight_end":146}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<manual::core::ptr::Ptr<BackendNode>>` is not implemented for `vector::Vector<manual::core::ptr::Ptr<BackendNode>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-16206489057855986019.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `Vector<Ptr<BackendNode>>: VectorExtern<Ptr<BackendNode>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:11639:98\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m11639\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0mdnn::BackendWrapper>>, nodes: &core::Vector<core::Ptr<crate::dnn::BackendNode>>) -> Result<core::Ptr<crate::dnn::BackendNode>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<manual::core::ptr::Ptr<BackendNode>>` is not implemented for `vector::Vector<manual::core::ptr::Ptr<BackendNode>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-16206489057855986019.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `Vector<Ptr<BackendNode>>: VectorExtern<Ptr<BackendNode>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":450500,"byte_end":450548,"line_start":11688,"line_end":11688,"column_start":160,"column_end":208,"is_primary":true,"text":[{"text":"\t\tfn init_cann(&mut self, inputs: &core::Vector<core::Ptr<crate::dnn::BackendWrapper>>, outputs: &core::Vector<core::Ptr<crate::dnn::BackendWrapper>>, nodes: &core::Vector<core::Ptr<crate::dnn::BackendNode>>) -> Result<core::Ptr<crate::dnn::BackendNode>> {","highlight_start":160,"highlight_end":208}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<manual::core::ptr::Ptr<BackendNode>>` is not implemented for `vector::Vector<manual::core::ptr::Ptr<BackendNode>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-16206489057855986019.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `Vector<Ptr<BackendNode>>: VectorExtern<Ptr<BackendNode>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:11688:160\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m11688\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0mdnn::BackendWrapper>>, nodes: &core::Vector<core::Ptr<crate::dnn::BackendNode>>) -> Result<core::Ptr<crate::dnn::BackendNode>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<manual::core::ptr::Ptr<BackendNode>>` is not implemented for `vector::Vector<manual::core::ptr::Ptr<BackendNode>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-16206489057855986019.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `new_rows_cols` found for struct `hub::core::Mat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":5290,"byte_end":5303,"line_start":179,"line_end":179,"column_start":32,"column_end":45,"is_primary":true,"text":[{"text":"\t\tlet mut out = unsafe { Self::new_rows_cols(1, col_count_i32(s.len())?, T::opencv_type()) }?;","highlight_start":32,"highlight_end":45}],"label":"function or associated item not found in `hub::core::Mat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":689783,"byte_end":689797,"line_start":15450,"line_end":15450,"column_start":2,"column_end":16,"is_primary":false,"text":[{"text":"\tpub struct Mat {","highlight_start":2,"highlight_end":16}],"label":"function or associated item `new_rows_cols` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\nmat::<impl hub::core::Mat>::from_exact_iter\nmat::<impl hub::core::Mat>::from_slice_2d\nhub::core::Mat::diag_mat","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":5168,"byte_end":5256,"line_start":178,"line_end":178,"column_start":2,"column_end":90,"is_primary":true,"text":[{"text":"\tpub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {","highlight_start":2,"highlight_end":90}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":7223,"byte_end":7295,"line_start":239,"line_end":239,"column_start":2,"column_end":74,"is_primary":true,"text":[{"text":"\tpub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {","highlight_start":2,"highlight_end":74}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":690251,"byte_end":690317,"line_start":15473,"line_end":15473,"column_start":3,"column_end":69,"is_primary":true,"text":[{"text":"\t\tpub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {","highlight_start":3,"highlight_end":69}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is a method `rowscols` with a similar name, but with different arguments","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":726416,"byte_end":726545,"line_start":16331,"line_end":16331,"column_start":3,"column_end":132,"is_primary":true,"text":[{"text":"\t\tfn rowscols(&self, mut row_range: impl core::RangeTrait, mut col_range: impl core::RangeTrait) -> Result<BoxedRef<'_, core::Mat>> {","highlight_start":3,"highlight_end":132}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `new_rows_cols` found for struct `hub::core::Mat` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:179:32\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m179\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let mut out = unsafe { Self::new_rows_cols(1, col_count_i32(s.len())?, T::opencv_type()) }?;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `hub::core::Mat`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15450:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15450\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Mat {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `new_rows_cols` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\n mat::<impl hub::core::Mat>::from_exact_iter\n mat::<impl hub::core::Mat>::from_slice_2d\n hub::core::Mat::diag_mat\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:178:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15473:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15473\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is a method `rowscols` with a similar name, but with different arguments\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:16331:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m16331\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn rowscols(&self, mut row_range: impl core::RangeTrait, mut col_range: impl core::RangeTrait) -> Result<BoxedRef<'_, core::Mat>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `new_rows_cols_with_default` found for struct `hub::core::Mat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":7525,"byte_end":7551,"line_start":250,"line_end":250,"column_start":23,"column_end":49,"is_primary":true,"text":[{"text":"\t\tlet mut out = Self::new_rows_cols_with_default(row_count, col_count, T::opencv_type(), Scalar::all(0.))?;","highlight_start":23,"highlight_end":49}],"label":"function or associated item not found in `hub::core::Mat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":689783,"byte_end":689797,"line_start":15450,"line_end":15450,"column_start":2,"column_end":16,"is_primary":false,"text":[{"text":"\tpub struct Mat {","highlight_start":2,"highlight_end":16}],"label":"function or associated item `new_rows_cols_with_default` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\nmat::<impl hub::core::Mat>::from_exact_iter\nmat::<impl hub::core::Mat>::from_slice_2d\nhub::core::Mat::diag_mat","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":5168,"byte_end":5256,"line_start":178,"line_end":178,"column_start":2,"column_end":90,"is_primary":true,"text":[{"text":"\tpub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {","highlight_start":2,"highlight_end":90}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":7223,"byte_end":7295,"line_start":239,"line_end":239,"column_start":2,"column_end":74,"is_primary":true,"text":[{"text":"\tpub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {","highlight_start":2,"highlight_end":74}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":690251,"byte_end":690317,"line_start":15473,"line_end":15473,"column_start":3,"column_end":69,"is_primary":true,"text":[{"text":"\t\tpub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {","highlight_start":3,"highlight_end":69}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `new_rows_cols_with_data` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":8259,"byte_end":8366,"line_start":275,"line_end":275,"column_start":2,"column_end":109,"is_primary":true,"text":[{"text":"\tpub fn new_rows_cols_with_data<T: DataType>(rows: i32, cols: i32, data: &[T]) -> Result<BoxedRef<'_, Self>> {","highlight_start":2,"highlight_end":109}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `new_rows_cols_with_default` found for struct `hub::core::Mat` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:250:23\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m250\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let mut out = Self::new_rows_cols_with_default(row_count, col_count, T::opencv_type(), Scalar::all(0.))?;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `hub::core::Mat`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15450:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15450\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Mat {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `new_rows_cols_with_default` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\n mat::<impl hub::core::Mat>::from_exact_iter\n mat::<impl hub::core::Mat>::from_slice_2d\n hub::core::Mat::diag_mat\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:178:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15473:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15473\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `new_rows_cols_with_data` with a similar name\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:275:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m275\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn new_rows_cols_with_data<T: DataType>(rows: i32, cols: i32, data: &[T]) -> Result<BoxedRef<'_, Self>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `new_rows_cols_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":8444,"byte_end":8478,"line_start":278,"line_end":278,"column_start":10,"column_end":44,"is_primary":true,"text":[{"text":"\t\t\tSelf::new_rows_cols_with_data_unsafe_def(rows, cols, T::opencv_type(), data.as_ptr().cast::<c_void>().cast_mut())","highlight_start":10,"highlight_end":44}],"label":"function or associated item not found in `hub::core::Mat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":689783,"byte_end":689797,"line_start":15450,"line_end":15450,"column_start":2,"column_end":16,"is_primary":false,"text":[{"text":"\tpub struct Mat {","highlight_start":2,"highlight_end":16}],"label":"function or associated item `new_rows_cols_with_data_unsafe_def` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\nmat::<impl hub::core::Mat>::from_exact_iter\nmat::<impl hub::core::Mat>::from_slice_2d\nhub::core::Mat::diag_mat","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":5168,"byte_end":5256,"line_start":178,"line_end":178,"column_start":2,"column_end":90,"is_primary":true,"text":[{"text":"\tpub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {","highlight_start":2,"highlight_end":90}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":7223,"byte_end":7295,"line_start":239,"line_end":239,"column_start":2,"column_end":74,"is_primary":true,"text":[{"text":"\tpub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {","highlight_start":2,"highlight_end":74}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":690251,"byte_end":690317,"line_start":15473,"line_end":15473,"column_start":3,"column_end":69,"is_primary":true,"text":[{"text":"\t\tpub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {","highlight_start":3,"highlight_end":69}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `new_rows_cols_with_data` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":8259,"byte_end":8366,"line_start":275,"line_end":275,"column_start":2,"column_end":109,"is_primary":true,"text":[{"text":"\tpub fn new_rows_cols_with_data<T: DataType>(rows: i32, cols: i32, data: &[T]) -> Result<BoxedRef<'_, Self>> {","highlight_start":2,"highlight_end":109}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `new_rows_cols_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:278:10\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m278\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self::new_rows_cols_with_data_unsafe_def(rows, cols, T::opencv_type(), data.as_ptr().cast::<c_void>().cast_mut())\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `hub::core::Mat`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15450:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15450\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Mat {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `new_rows_cols_with_data_unsafe_def` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\n mat::<impl hub::core::Mat>::from_exact_iter\n mat::<impl hub::core::Mat>::from_slice_2d\n hub::core::Mat::diag_mat\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:178:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15473:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15473\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `new_rows_cols_with_data` with a similar name\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:275:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m275\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn new_rows_cols_with_data<T: DataType>(rows: i32, cols: i32, data: &[T]) -> Result<BoxedRef<'_, Self>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `new_rows_cols_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":8902,"byte_end":8936,"line_start":288,"line_end":288,"column_start":10,"column_end":44,"is_primary":true,"text":[{"text":"\t\t\tSelf::new_rows_cols_with_data_unsafe_def(rows, cols, T::opencv_type(), data.as_ptr().cast::<c_void>().cast_mut())","highlight_start":10,"highlight_end":44}],"label":"function or associated item not found in `hub::core::Mat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":689783,"byte_end":689797,"line_start":15450,"line_end":15450,"column_start":2,"column_end":16,"is_primary":false,"text":[{"text":"\tpub struct Mat {","highlight_start":2,"highlight_end":16}],"label":"function or associated item `new_rows_cols_with_data_unsafe_def` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\nmat::<impl hub::core::Mat>::from_exact_iter\nmat::<impl hub::core::Mat>::from_slice_2d\nhub::core::Mat::diag_mat","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":5168,"byte_end":5256,"line_start":178,"line_end":178,"column_start":2,"column_end":90,"is_primary":true,"text":[{"text":"\tpub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {","highlight_start":2,"highlight_end":90}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":7223,"byte_end":7295,"line_start":239,"line_end":239,"column_start":2,"column_end":74,"is_primary":true,"text":[{"text":"\tpub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {","highlight_start":2,"highlight_end":74}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":690251,"byte_end":690317,"line_start":15473,"line_end":15473,"column_start":3,"column_end":69,"is_primary":true,"text":[{"text":"\t\tpub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {","highlight_start":3,"highlight_end":69}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `new_rows_cols_with_data` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":8259,"byte_end":8366,"line_start":275,"line_end":275,"column_start":2,"column_end":109,"is_primary":true,"text":[{"text":"\tpub fn new_rows_cols_with_data<T: DataType>(rows: i32, cols: i32, data: &[T]) -> Result<BoxedRef<'_, Self>> {","highlight_start":2,"highlight_end":109}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `new_rows_cols_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:288:10\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m288\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self::new_rows_cols_with_data_unsafe_def(rows, cols, T::opencv_type(), data.as_ptr().cast::<c_void>().cast_mut())\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `hub::core::Mat`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15450:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15450\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Mat {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `new_rows_cols_with_data_unsafe_def` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\n mat::<impl hub::core::Mat>::from_exact_iter\n mat::<impl hub::core::Mat>::from_slice_2d\n hub::core::Mat::diag_mat\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:178:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15473:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15473\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `new_rows_cols_with_data` with a similar name\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:275:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m275\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn new_rows_cols_with_data<T: DataType>(rows: i32, cols: i32, data: &[T]) -> Result<BoxedRef<'_, Self>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `new_rows_cols_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":9354,"byte_end":9388,"line_start":298,"line_end":298,"column_start":19,"column_end":53,"is_primary":true,"text":[{"text":"\t\t\tunsafe { Self::new_rows_cols_with_data_unsafe_def(rows, cols, T::opencv_type(), data.as_mut_ptr().cast::<c_void>()) }?;","highlight_start":19,"highlight_end":53}],"label":"function or associated item not found in `hub::core::Mat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":689783,"byte_end":689797,"line_start":15450,"line_end":15450,"column_start":2,"column_end":16,"is_primary":false,"text":[{"text":"\tpub struct Mat {","highlight_start":2,"highlight_end":16}],"label":"function or associated item `new_rows_cols_with_data_unsafe_def` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\nmat::<impl hub::core::Mat>::from_exact_iter\nmat::<impl hub::core::Mat>::from_slice_2d\nhub::core::Mat::diag_mat","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":5168,"byte_end":5256,"line_start":178,"line_end":178,"column_start":2,"column_end":90,"is_primary":true,"text":[{"text":"\tpub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {","highlight_start":2,"highlight_end":90}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":7223,"byte_end":7295,"line_start":239,"line_end":239,"column_start":2,"column_end":74,"is_primary":true,"text":[{"text":"\tpub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {","highlight_start":2,"highlight_end":74}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":690251,"byte_end":690317,"line_start":15473,"line_end":15473,"column_start":3,"column_end":69,"is_primary":true,"text":[{"text":"\t\tpub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {","highlight_start":3,"highlight_end":69}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `new_rows_cols_with_data` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":8259,"byte_end":8366,"line_start":275,"line_end":275,"column_start":2,"column_end":109,"is_primary":true,"text":[{"text":"\tpub fn new_rows_cols_with_data<T: DataType>(rows: i32, cols: i32, data: &[T]) -> Result<BoxedRef<'_, Self>> {","highlight_start":2,"highlight_end":109}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `new_rows_cols_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:298:19\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m298\u001b[0m \u001b[1m\u001b[94m|\u001b[0m unsafe { Self::new_rows_cols_with_data_unsafe_def(rows, cols, T::opencv_type(), data.as_mut_ptr().cast::<c_void>()) }?;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `hub::core::Mat`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15450:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15450\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Mat {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `new_rows_cols_with_data_unsafe_def` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\n mat::<impl hub::core::Mat>::from_exact_iter\n mat::<impl hub::core::Mat>::from_slice_2d\n hub::core::Mat::diag_mat\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:178:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15473:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15473\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `new_rows_cols_with_data` with a similar name\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:275:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m275\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn new_rows_cols_with_data<T: DataType>(rows: i32, cols: i32, data: &[T]) -> Result<BoxedRef<'_, Self>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `new_rows_cols_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":9825,"byte_end":9859,"line_start":307,"line_end":307,"column_start":19,"column_end":53,"is_primary":true,"text":[{"text":"\t\t\tunsafe { Self::new_rows_cols_with_data_unsafe_def(rows, cols, T::opencv_type(), data.as_mut_ptr().cast::<c_void>()) }?;","highlight_start":19,"highlight_end":53}],"label":"function or associated item not found in `hub::core::Mat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":689783,"byte_end":689797,"line_start":15450,"line_end":15450,"column_start":2,"column_end":16,"is_primary":false,"text":[{"text":"\tpub struct Mat {","highlight_start":2,"highlight_end":16}],"label":"function or associated item `new_rows_cols_with_data_unsafe_def` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\nmat::<impl hub::core::Mat>::from_exact_iter\nmat::<impl hub::core::Mat>::from_slice_2d\nhub::core::Mat::diag_mat","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":5168,"byte_end":5256,"line_start":178,"line_end":178,"column_start":2,"column_end":90,"is_primary":true,"text":[{"text":"\tpub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {","highlight_start":2,"highlight_end":90}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":7223,"byte_end":7295,"line_start":239,"line_end":239,"column_start":2,"column_end":74,"is_primary":true,"text":[{"text":"\tpub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {","highlight_start":2,"highlight_end":74}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":690251,"byte_end":690317,"line_start":15473,"line_end":15473,"column_start":3,"column_end":69,"is_primary":true,"text":[{"text":"\t\tpub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {","highlight_start":3,"highlight_end":69}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `new_rows_cols_with_data` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":8259,"byte_end":8366,"line_start":275,"line_end":275,"column_start":2,"column_end":109,"is_primary":true,"text":[{"text":"\tpub fn new_rows_cols_with_data<T: DataType>(rows: i32, cols: i32, data: &[T]) -> Result<BoxedRef<'_, Self>> {","highlight_start":2,"highlight_end":109}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `new_rows_cols_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:307:19\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m307\u001b[0m \u001b[1m\u001b[94m|\u001b[0m unsafe { Self::new_rows_cols_with_data_unsafe_def(rows, cols, T::opencv_type(), data.as_mut_ptr().cast::<c_void>()) }?;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `hub::core::Mat`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15450:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15450\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Mat {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `new_rows_cols_with_data_unsafe_def` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\n mat::<impl hub::core::Mat>::from_exact_iter\n mat::<impl hub::core::Mat>::from_slice_2d\n hub::core::Mat::diag_mat\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:178:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15473:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15473\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `new_rows_cols_with_data` with a similar name\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:275:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m275\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn new_rows_cols_with_data<T: DataType>(rows: i32, cols: i32, data: &[T]) -> Result<BoxedRef<'_, Self>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `new_size_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":10247,"byte_end":10276,"line_start":315,"line_end":315,"column_start":26,"column_end":55,"is_primary":true,"text":[{"text":"\t\tlet m = unsafe { Self::new_size_with_data_unsafe_def(size, T::opencv_type(), data.as_ptr().cast::<c_void>().cast_mut()) }?;","highlight_start":26,"highlight_end":55}],"label":"function or associated item not found in `hub::core::Mat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":689783,"byte_end":689797,"line_start":15450,"line_end":15450,"column_start":2,"column_end":16,"is_primary":false,"text":[{"text":"\tpub struct Mat {","highlight_start":2,"highlight_end":16}],"label":"function or associated item `new_size_with_data_unsafe_def` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\nmat::<impl hub::core::Mat>::from_exact_iter\nmat::<impl hub::core::Mat>::from_slice_2d\nhub::core::Mat::diag_mat","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":5168,"byte_end":5256,"line_start":178,"line_end":178,"column_start":2,"column_end":90,"is_primary":true,"text":[{"text":"\tpub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {","highlight_start":2,"highlight_end":90}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":7223,"byte_end":7295,"line_start":239,"line_end":239,"column_start":2,"column_end":74,"is_primary":true,"text":[{"text":"\tpub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {","highlight_start":2,"highlight_end":74}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":690251,"byte_end":690317,"line_start":15473,"line_end":15473,"column_start":3,"column_end":69,"is_primary":true,"text":[{"text":"\t\tpub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {","highlight_start":3,"highlight_end":69}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `new_size_with_data` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":10067,"byte_end":10159,"line_start":313,"line_end":313,"column_start":2,"column_end":94,"is_primary":true,"text":[{"text":"\tpub fn new_size_with_data<T: DataType>(size: Size, data: &[T]) -> Result<BoxedRef<'_, Self>> {","highlight_start":2,"highlight_end":94}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `new_size_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:315:26\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m315\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let m = unsafe { Self::new_size_with_data_unsafe_def(size, T::opencv_type(), data.as_ptr().cast::<c_void>().cast_mut()) }?;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `hub::core::Mat`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15450:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15450\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Mat {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `new_size_with_data_unsafe_def` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\n mat::<impl hub::core::Mat>::from_exact_iter\n mat::<impl hub::core::Mat>::from_slice_2d\n hub::core::Mat::diag_mat\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:178:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15473:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15473\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `new_size_with_data` with a similar name\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:313:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m313\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn new_size_with_data<T: DataType>(size: Size, data: &[T]) -> Result<BoxedRef<'_, Self>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `new_size_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":10681,"byte_end":10710,"line_start":323,"line_end":323,"column_start":26,"column_end":55,"is_primary":true,"text":[{"text":"\t\tlet m = unsafe { Self::new_size_with_data_unsafe_def(size, T::opencv_type(), data.as_mut_ptr().cast::<c_void>()) }?;","highlight_start":26,"highlight_end":55}],"label":"function or associated item not found in `hub::core::Mat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":689783,"byte_end":689797,"line_start":15450,"line_end":15450,"column_start":2,"column_end":16,"is_primary":false,"text":[{"text":"\tpub struct Mat {","highlight_start":2,"highlight_end":16}],"label":"function or associated item `new_size_with_data_unsafe_def` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\nmat::<impl hub::core::Mat>::from_exact_iter\nmat::<impl hub::core::Mat>::from_slice_2d\nhub::core::Mat::diag_mat","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":5168,"byte_end":5256,"line_start":178,"line_end":178,"column_start":2,"column_end":90,"is_primary":true,"text":[{"text":"\tpub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {","highlight_start":2,"highlight_end":90}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":7223,"byte_end":7295,"line_start":239,"line_end":239,"column_start":2,"column_end":74,"is_primary":true,"text":[{"text":"\tpub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {","highlight_start":2,"highlight_end":74}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":690251,"byte_end":690317,"line_start":15473,"line_end":15473,"column_start":3,"column_end":69,"is_primary":true,"text":[{"text":"\t\tpub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {","highlight_start":3,"highlight_end":69}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `new_size_with_data` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":10067,"byte_end":10159,"line_start":313,"line_end":313,"column_start":2,"column_end":94,"is_primary":true,"text":[{"text":"\tpub fn new_size_with_data<T: DataType>(size: Size, data: &[T]) -> Result<BoxedRef<'_, Self>> {","highlight_start":2,"highlight_end":94}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `new_size_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:323:26\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m323\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let m = unsafe { Self::new_size_with_data_unsafe_def(size, T::opencv_type(), data.as_mut_ptr().cast::<c_void>()) }?;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `hub::core::Mat`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15450:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15450\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Mat {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `new_size_with_data_unsafe_def` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\n mat::<impl hub::core::Mat>::from_exact_iter\n mat::<impl hub::core::Mat>::from_slice_2d\n hub::core::Mat::diag_mat\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:178:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15473:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15473\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `new_size_with_data` with a similar name\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:313:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m313\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn new_size_with_data<T: DataType>(size: Size, data: &[T]) -> Result<BoxedRef<'_, Self>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `new_nd_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":11088,"byte_end":11115,"line_start":331,"line_end":331,"column_start":26,"column_end":53,"is_primary":true,"text":[{"text":"\t\tlet m = unsafe { Self::new_nd_with_data_unsafe_def(sizes, T::opencv_type(), data.as_ptr().cast::<c_void>().cast_mut()) }?;","highlight_start":26,"highlight_end":53}],"label":"function or associated item not found in `hub::core::Mat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":689783,"byte_end":689797,"line_start":15450,"line_end":15450,"column_start":2,"column_end":16,"is_primary":false,"text":[{"text":"\tpub struct Mat {","highlight_start":2,"highlight_end":16}],"label":"function or associated item `new_nd_with_data_unsafe_def` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\nmat::<impl hub::core::Mat>::from_exact_iter\nmat::<impl hub::core::Mat>::from_slice_2d\nhub::core::Mat::diag_mat","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":5168,"byte_end":5256,"line_start":178,"line_end":178,"column_start":2,"column_end":90,"is_primary":true,"text":[{"text":"\tpub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {","highlight_start":2,"highlight_end":90}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":7223,"byte_end":7295,"line_start":239,"line_end":239,"column_start":2,"column_end":74,"is_primary":true,"text":[{"text":"\tpub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {","highlight_start":2,"highlight_end":74}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":690251,"byte_end":690317,"line_start":15473,"line_end":15473,"column_start":3,"column_end":69,"is_primary":true,"text":[{"text":"\t\tpub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {","highlight_start":3,"highlight_end":69}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `new_nd_with_data` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":10912,"byte_end":11021,"line_start":329,"line_end":329,"column_start":2,"column_end":111,"is_primary":true,"text":[{"text":"\tpub fn new_nd_with_data<'data, T: DataType>(sizes: &[i32], data: &'data [T]) -> Result<BoxedRef<'data, Self>> {","highlight_start":2,"highlight_end":111}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `new_nd_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:331:26\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m331\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let m = unsafe { Self::new_nd_with_data_unsafe_def(sizes, T::opencv_type(), data.as_ptr().cast::<c_void>().cast_mut()) }?;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `hub::core::Mat`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15450:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15450\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Mat {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `new_nd_with_data_unsafe_def` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\n mat::<impl hub::core::Mat>::from_exact_iter\n mat::<impl hub::core::Mat>::from_slice_2d\n hub::core::Mat::diag_mat\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:178:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15473:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15473\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `new_nd_with_data` with a similar name\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:329:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m329\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn new_nd_with_data<'data, T: DataType>(sizes: &[i32], data: &'data [T]) -> Result<BoxedRef<'data, Self>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `new_nd_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":11509,"byte_end":11536,"line_start":339,"line_end":339,"column_start":26,"column_end":53,"is_primary":true,"text":[{"text":"\t\tlet m = unsafe { Self::new_nd_with_data_unsafe_def(sizes, T::opencv_type(), data.as_mut_ptr().cast::<c_void>()) }?;","highlight_start":26,"highlight_end":53}],"label":"function or associated item not found in `hub::core::Mat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":689783,"byte_end":689797,"line_start":15450,"line_end":15450,"column_start":2,"column_end":16,"is_primary":false,"text":[{"text":"\tpub struct Mat {","highlight_start":2,"highlight_end":16}],"label":"function or associated item `new_nd_with_data_unsafe_def` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\nmat::<impl hub::core::Mat>::from_exact_iter\nmat::<impl hub::core::Mat>::from_slice_2d\nhub::core::Mat::diag_mat","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":5168,"byte_end":5256,"line_start":178,"line_end":178,"column_start":2,"column_end":90,"is_primary":true,"text":[{"text":"\tpub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {","highlight_start":2,"highlight_end":90}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":7223,"byte_end":7295,"line_start":239,"line_end":239,"column_start":2,"column_end":74,"is_primary":true,"text":[{"text":"\tpub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {","highlight_start":2,"highlight_end":74}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":690251,"byte_end":690317,"line_start":15473,"line_end":15473,"column_start":3,"column_end":69,"is_primary":true,"text":[{"text":"\t\tpub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {","highlight_start":3,"highlight_end":69}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `new_nd_with_data` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":10912,"byte_end":11021,"line_start":329,"line_end":329,"column_start":2,"column_end":111,"is_primary":true,"text":[{"text":"\tpub fn new_nd_with_data<'data, T: DataType>(sizes: &[i32], data: &'data [T]) -> Result<BoxedRef<'data, Self>> {","highlight_start":2,"highlight_end":111}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `new_nd_with_data_unsafe_def` found for struct `hub::core::Mat` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:339:26\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m339\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let m = unsafe { Self::new_nd_with_data_unsafe_def(sizes, T::opencv_type(), data.as_mut_ptr().cast::<c_void>()) }?;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `hub::core::Mat`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15450:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15450\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Mat {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `new_nd_with_data_unsafe_def` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `hub::core::Mat` consider using one of the following associated functions:\n mat::<impl hub::core::Mat>::from_exact_iter\n mat::<impl hub::core::Mat>::from_slice_2d\n hub::core::Mat::diag_mat\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:178:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m178\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_exact_iter<T: DataType>(s: impl ExactSizeIterator<Item = T>) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn from_slice_2d<T: DataType>(s: &[impl AsRef<[T]>]) -> Result<Self> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:15473:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m15473\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn diag_mat(d: &impl core::MatTraitConst) -> Result<core::Mat> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `new_nd_with_data` with a similar name\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:329:2\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m329\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn new_nd_with_data<'data, T: DataType>(sizes: &[i32], data: &'data [T]) -> Result<BoxedRef<'data, Self>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n x + 1\n}\n\nplus_one(\"Not a number\");\n// ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n// --- ^^^^^^^^^^^^^ expected `f32`, found `&str`\n// |\n// expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":12048,"byte_end":12049,"line_start":348,"line_end":348,"column_start":28,"column_end":29,"is_primary":true,"text":[{"text":"\t\t\tlet out1 = Mat::roi_mut(m, roi1)?;","highlight_start":28,"highlight_end":29}],"label":"expected `&mut Mat`, found `&mut MAT`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":11739,"byte_end":11742,"line_start":344,"line_end":344,"column_start":19,"column_end":22,"is_primary":false,"text":[{"text":"\tpub fn roi_2_mut<MAT: MatTrait>(m: &mut MAT, roi1: Rect, roi2: Rect) -> Result<(BoxedRefMut<'_, Mat>, BoxedRefMut<'_, Mat>)> {","highlight_start":19,"highlight_end":22}],"label":"found this type parameter","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":12035,"byte_end":12047,"line_start":348,"line_end":348,"column_start":15,"column_end":27,"is_primary":false,"text":[{"text":"\t\t\tlet out1 = Mat::roi_mut(m, roi1)?;","highlight_start":15,"highlight_end":27}],"label":"arguments to this function are incorrect","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"expected mutable reference `&mut hub::core::Mat`\n found mutable reference `&mut MAT`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"method defined here","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":801737,"byte_end":801746,"line_start":18083,"line_end":18083,"column_start":14,"column_end":23,"is_primary":false,"text":[{"text":"\t\tfn roi_mut(&mut self, roi: core::Rect) -> Result<BoxedRefMut<'_, core::Mat>> {","highlight_start":14,"highlight_end":23}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":801729,"byte_end":801736,"line_start":18083,"line_end":18083,"column_start":6,"column_end":13,"is_primary":true,"text":[{"text":"\t\tfn roi_mut(&mut self, roi: core::Rect) -> Result<BoxedRefMut<'_, core::Mat>> {","highlight_start":6,"highlight_end":13}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:348:28\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m344\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn roi_2_mut<MAT: MatTrait>(m: &mut MAT, roi1: Rect, roi2: Rect) -> Result<(BoxedRefMut<'_, Mat>, BoxedRefMut<'_, Mat>)> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mfound this type parameter\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m348\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let out1 = Mat::roi_mut(m, roi1)?;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------------\u001b[0m \u001b[1m\u001b[91m^\u001b[0m \u001b[1m\u001b[91mexpected `&mut Mat`, found `&mut MAT`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94marguments to this function are incorrect\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: expected mutable reference `&mut \u001b[1m\u001b[35mhub::core::Mat\u001b[0m`\n found mutable reference `&mut \u001b[1m\u001b[35mMAT\u001b[0m`\n\u001b[1m\u001b[92mnote\u001b[0m: method defined here\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:18083:6\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m18083\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn roi_mut(&mut self, roi: core::Rect) -> Result<BoxedRefMut<'_, core::Mat>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^\u001b[0m \u001b[1m\u001b[94m---------\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.\n\nErroneous code examples:\n\n```compile_fail,E0308\nfn plus_one(x: i32) -> i32 {\n x + 1\n}\n\nplus_one(\"Not a number\");\n// ^^^^^^^^^^^^^^ expected `i32`, found `&str`\n\nif \"Not a bool\" {\n// ^^^^^^^^^^^^ expected `bool`, found `&str`\n}\n\nlet x: f32 = \"Not a float\";\n// --- ^^^^^^^^^^^^^ expected `f32`, found `&str`\n// |\n// expected due to this\n```\n\nThis error occurs when an expression was used in a place where the compiler\nexpected an expression of a different type. It can occur in several cases, the\nmost common being when calling a function and passing an argument which has a\ndifferent type than the matching type in the function declaration.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":12086,"byte_end":12088,"line_start":349,"line_end":349,"column_start":28,"column_end":30,"is_primary":true,"text":[{"text":"\t\t\tlet out2 = Mat::roi_mut(m2, roi2)?;","highlight_start":28,"highlight_end":30}],"label":"expected `&mut Mat`, found `&mut MAT`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":11739,"byte_end":11742,"line_start":344,"line_end":344,"column_start":19,"column_end":22,"is_primary":false,"text":[{"text":"\tpub fn roi_2_mut<MAT: MatTrait>(m: &mut MAT, roi1: Rect, roi2: Rect) -> Result<(BoxedRefMut<'_, Mat>, BoxedRefMut<'_, Mat>)> {","highlight_start":19,"highlight_end":22}],"label":"found this type parameter","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":12073,"byte_end":12085,"line_start":349,"line_end":349,"column_start":15,"column_end":27,"is_primary":false,"text":[{"text":"\t\t\tlet out2 = Mat::roi_mut(m2, roi2)?;","highlight_start":15,"highlight_end":27}],"label":"arguments to this function are incorrect","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"expected mutable reference `&mut hub::core::Mat`\n found mutable reference `&mut MAT`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"method defined here","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":801737,"byte_end":801746,"line_start":18083,"line_end":18083,"column_start":14,"column_end":23,"is_primary":false,"text":[{"text":"\t\tfn roi_mut(&mut self, roi: core::Rect) -> Result<BoxedRefMut<'_, core::Mat>> {","highlight_start":14,"highlight_end":23}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":801729,"byte_end":801736,"line_start":18083,"line_end":18083,"column_start":6,"column_end":13,"is_primary":true,"text":[{"text":"\t\tfn roi_mut(&mut self, roi: core::Rect) -> Result<BoxedRefMut<'_, core::Mat>> {","highlight_start":6,"highlight_end":13}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0308]\u001b[0m\u001b[1m: mismatched types\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:349:28\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m344\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn roi_2_mut<MAT: MatTrait>(m: &mut MAT, roi1: Rect, roi2: Rect) -> Result<(BoxedRefMut<'_, Mat>, BoxedRefMut<'_, Mat>)> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---\u001b[0m \u001b[1m\u001b[94mfound this type parameter\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m349\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let out2 = Mat::roi_mut(m2, roi2)?;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------------\u001b[0m \u001b[1m\u001b[91m^^\u001b[0m \u001b[1m\u001b[91mexpected `&mut Mat`, found `&mut MAT`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94marguments to this function are incorrect\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: expected mutable reference `&mut \u001b[1m\u001b[35mhub::core::Mat\u001b[0m`\n found mutable reference `&mut \u001b[1m\u001b[35mMAT\u001b[0m`\n\u001b[1m\u001b[92mnote\u001b[0m: method defined here\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:18083:6\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m18083\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn roi_mut(&mut self, roi: core::Rect) -> Result<BoxedRefMut<'_, core::Mat>> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^\u001b[0m \u001b[1m\u001b[94m---------\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `over` found for struct `MatConstIterator` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":20687,"byte_end":20691,"line_start":650,"line_end":650,"column_start":21,"column_end":25,"is_primary":true,"text":[{"text":"\t\tMatConstIterator::over(self).map_or(","highlight_start":21,"highlight_end":25}],"label":"function or associated item not found in `MatConstIterator`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":819568,"byte_end":819595,"line_start":18491,"line_end":18491,"column_start":2,"column_end":29,"is_primary":false,"text":[{"text":"\tpub struct MatConstIterator {","highlight_start":2,"highlight_end":29}],"label":"function or associated item `over` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `over` found for struct `MatConstIterator` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:650:21\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m650\u001b[0m \u001b[1m\u001b[94m|\u001b[0m MatConstIterator::over(self).map_or(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `MatConstIterator`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:18491:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m18491\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct MatConstIterator {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `over` not found for this struct\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `over` found for struct `MatConstIterator` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24457,"byte_end":24461,"line_start":771,"line_end":771,"column_start":21,"column_end":25,"is_primary":true,"text":[{"text":"\t\tMatConstIterator::over(self).map_or(","highlight_start":21,"highlight_end":25}],"label":"function or associated item not found in `MatConstIterator`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":819568,"byte_end":819595,"line_start":18491,"line_end":18491,"column_start":2,"column_end":29,"is_primary":false,"text":[{"text":"\tpub struct MatConstIterator {","highlight_start":2,"highlight_end":29}],"label":"function or associated item `over` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `over` found for struct `MatConstIterator` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:771:21\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m771\u001b[0m \u001b[1m\u001b[94m|\u001b[0m MatConstIterator::over(self).map_or(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `MatConstIterator`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:18491:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m18491\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct MatConstIterator {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `over` not found for this struct\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_mat` found for struct `_InputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24710,"byte_end":24718,"line_start":785,"line_end":785,"column_start":28,"column_end":36,"is_primary":true,"text":[{"text":"input_output_array! { Mat, from_mat, from_mat_mut }","highlight_start":28,"highlight_end":36}],"label":"function or associated item not found in `_InputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062597,"byte_end":1062619,"line_start":25239,"line_end":25239,"column_start":2,"column_end":24,"is_primary":false,"text":[{"text":"\tpub struct _InputArray {","highlight_start":2,"highlight_end":24}],"label":"function or associated item `from_mat` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n_InputArray::default\n_InputArray::new","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062900,"byte_end":1062945,"line_start":25256,"line_end":25256,"column_start":3,"column_end":48,"is_primary":true,"text":[{"text":"\t\tpub fn default() -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":48}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1063229,"byte_end":1063307,"line_start":25266,"line_end":25266,"column_start":3,"column_end":81,"is_primary":true,"text":[{"text":"\t\tpub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":81}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `from` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24710,"byte_end":24718,"line_start":785,"line_end":785,"column_start":28,"column_end":36,"is_primary":true,"text":[{"text":"input_output_array! { Mat, from_mat, from_mat_mut }","highlight_start":28,"highlight_end":36}],"label":null,"suggested_replacement":"from","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_mat` found for struct `_InputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:785:28\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m785\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array! { Mat, from_mat, from_mat_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_InputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25239:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _InputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_mat` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n _InputArray::default\n _InputArray::new\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25256:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25256\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn default() -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m25266\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `from` with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m785\u001b[0m \u001b[91m- \u001b[0minput_output_array! { Mat, \u001b[91mfrom_mat\u001b[0m, from_mat_mut }\n \u001b[1m\u001b[94m785\u001b[0m \u001b[92m+ \u001b[0minput_output_array! { Mat, \u001b[92mfrom\u001b[0m, from_mat_mut }\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_mat_mut` found for struct `_OutputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4498,"byte_end":4507,"line_start":131,"line_end":131,"column_start":33,"column_end":42,"is_primary":false,"text":[{"text":"\t\t\t\t$crate::core::_OutputArray::$mut_cons(self)","highlight_start":33,"highlight_end":42}],"label":"due to this macro variable","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24683,"byte_end":24734,"line_start":785,"line_end":785,"column_start":1,"column_end":52,"is_primary":false,"text":[{"text":"input_output_array! { Mat, from_mat, from_mat_mut }","highlight_start":1,"highlight_end":52}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24720,"byte_end":24732,"line_start":785,"line_end":785,"column_start":38,"column_end":50,"is_primary":true,"text":[{"text":"input_output_array! { Mat, from_mat, from_mat_mut }","highlight_start":38,"highlight_end":50}],"label":"function or associated item not found in `_OutputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1085096,"byte_end":1085119,"line_start":25899,"line_end":25899,"column_start":2,"column_end":25,"is_primary":false,"text":[{"text":"\tpub struct _OutputArray {","highlight_start":2,"highlight_end":25}],"label":"function or associated item `from_mat_mut` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"there is an associated function `from_raw` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24720,"byte_end":24732,"line_start":785,"line_end":785,"column_start":38,"column_end":50,"is_primary":true,"text":[{"text":"input_output_array! { Mat, from_mat, from_mat_mut }","highlight_start":38,"highlight_end":50}],"label":null,"suggested_replacement":"from_raw","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_mat_mut` found for struct `_OutputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:785:38\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m785\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array! { Mat, from_mat, from_mat_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_OutputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:131:33\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m131\u001b[0m \u001b[1m\u001b[94m|\u001b[0m $crate::core::_OutputArray::$mut_cons(self)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------\u001b[0m \u001b[1m\u001b[94mdue to this macro variable\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25899:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25899\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _OutputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_mat_mut` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `from_raw` with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m785\u001b[0m \u001b[91m- \u001b[0minput_output_array! { Mat, from_mat, \u001b[91mfrom_mat_mut\u001b[0m }\n \u001b[1m\u001b[94m785\u001b[0m \u001b[92m+ \u001b[0minput_output_array! { Mat, from_mat, \u001b[92mfrom_raw\u001b[0m }\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_mat_mut` found for struct `_InputOutputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4498,"byte_end":4507,"line_start":131,"line_end":131,"column_start":33,"column_end":42,"is_primary":false,"text":[{"text":"\t\t\t\t$crate::core::_OutputArray::$mut_cons(self)","highlight_start":33,"highlight_end":42}],"label":"due to this macro variable","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24683,"byte_end":24734,"line_start":785,"line_end":785,"column_start":1,"column_end":52,"is_primary":false,"text":[{"text":"input_output_array! { Mat, from_mat, from_mat_mut }","highlight_start":1,"highlight_end":52}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24720,"byte_end":24732,"line_start":785,"line_end":785,"column_start":38,"column_end":50,"is_primary":true,"text":[{"text":"input_output_array! { Mat, from_mat, from_mat_mut }","highlight_start":38,"highlight_end":50}],"label":"function or associated item not found in `_InputOutputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1080473,"byte_end":1080501,"line_start":25781,"line_end":25781,"column_start":2,"column_end":30,"is_primary":false,"text":[{"text":"\tpub struct _InputOutputArray {","highlight_start":2,"highlight_end":30}],"label":"function or associated item `from_mat_mut` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `_InputOutputArray` consider using one of the following associated functions:\n_InputOutputArray::default\n_InputOutputArray::new","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1080913,"byte_end":1080964,"line_start":25799,"line_end":25799,"column_start":3,"column_end":54,"is_primary":true,"text":[{"text":"\t\tpub fn default() -> Result<core::_InputOutputArray> {","highlight_start":3,"highlight_end":54}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1081266,"byte_end":1081350,"line_start":25809,"line_end":25809,"column_start":3,"column_end":87,"is_primary":true,"text":[{"text":"\t\tpub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputOutputArray> {","highlight_start":3,"highlight_end":87}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `from_raw` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24720,"byte_end":24732,"line_start":785,"line_end":785,"column_start":38,"column_end":50,"is_primary":true,"text":[{"text":"input_output_array! { Mat, from_mat, from_mat_mut }","highlight_start":38,"highlight_end":50}],"label":null,"suggested_replacement":"from_raw","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_mat_mut` found for struct `_InputOutputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:785:38\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m785\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array! { Mat, from_mat, from_mat_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_InputOutputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:131:33\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m131\u001b[0m \u001b[1m\u001b[94m|\u001b[0m $crate::core::_OutputArray::$mut_cons(self)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------\u001b[0m \u001b[1m\u001b[94mdue to this macro variable\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25781:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25781\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _InputOutputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_mat_mut` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `_InputOutputArray` consider using one of the following associated functions:\n _InputOutputArray::default\n _InputOutputArray::new\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25799:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25799\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn default() -> Result<core::_InputOutputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m25809\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputOutputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `from_raw` with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m785\u001b[0m \u001b[91m- \u001b[0minput_output_array! { Mat, from_mat, \u001b[91mfrom_mat_mut\u001b[0m }\n \u001b[1m\u001b[94m785\u001b[0m \u001b[92m+ \u001b[0minput_output_array! { Mat, from_mat, \u001b[92mfrom_raw\u001b[0m }\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_mat_vec` found for struct `_InputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5722,"byte_end":5733,"line_start":166,"line_end":166,"column_start":32,"column_end":43,"is_primary":false,"text":[{"text":"\t\t\t\t$crate::core::_InputArray::$const_cons(self.as_non_ref_vec())","highlight_start":32,"highlight_end":43}],"label":"due to this macro variable","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24735,"byte_end":24801,"line_start":786,"line_end":786,"column_start":1,"column_end":67,"is_primary":false,"text":[{"text":"input_output_array_vector! { Mat, from_mat_vec, from_mat_vec_mut }","highlight_start":1,"highlight_end":67}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24769,"byte_end":24781,"line_start":786,"line_end":786,"column_start":35,"column_end":47,"is_primary":true,"text":[{"text":"input_output_array_vector! { Mat, from_mat_vec, from_mat_vec_mut }","highlight_start":35,"highlight_end":47}],"label":"function or associated item not found in `_InputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062597,"byte_end":1062619,"line_start":25239,"line_end":25239,"column_start":2,"column_end":24,"is_primary":false,"text":[{"text":"\tpub struct _InputArray {","highlight_start":2,"highlight_end":24}],"label":"function or associated item `from_mat_vec` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n_InputArray::default\n_InputArray::new","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062900,"byte_end":1062945,"line_start":25256,"line_end":25256,"column_start":3,"column_end":48,"is_primary":true,"text":[{"text":"\t\tpub fn default() -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":48}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1063229,"byte_end":1063307,"line_start":25266,"line_end":25266,"column_start":3,"column_end":81,"is_primary":true,"text":[{"text":"\t\tpub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":81}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `from_bool_vec` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24769,"byte_end":24781,"line_start":786,"line_end":786,"column_start":35,"column_end":47,"is_primary":true,"text":[{"text":"input_output_array_vector! { Mat, from_mat_vec, from_mat_vec_mut }","highlight_start":35,"highlight_end":47}],"label":null,"suggested_replacement":"from_bool_vec","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_mat_vec` found for struct `_InputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:786:35\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m786\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { Mat, from_mat_vec, from_mat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_InputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:166:32\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m166\u001b[0m \u001b[1m\u001b[94m|\u001b[0m $crate::core::_InputArray::$const_cons(self.as_non_ref_vec())\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----------\u001b[0m \u001b[1m\u001b[94mdue to this macro variable\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25239:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _InputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_mat_vec` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n _InputArray::default\n _InputArray::new\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25256:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25256\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn default() -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m25266\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `from_bool_vec` with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m786\u001b[0m \u001b[91m- \u001b[0minput_output_array_vector! { Mat, \u001b[91mfrom_mat_vec\u001b[0m, from_mat_vec_mut }\n \u001b[1m\u001b[94m786\u001b[0m \u001b[92m+ \u001b[0minput_output_array_vector! { Mat, \u001b[92mfrom_bool_vec\u001b[0m, from_mat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_mat_vec` found for struct `_InputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24769,"byte_end":24781,"line_start":786,"line_end":786,"column_start":35,"column_end":47,"is_primary":true,"text":[{"text":"input_output_array_vector! { Mat, from_mat_vec, from_mat_vec_mut }","highlight_start":35,"highlight_end":47}],"label":"function or associated item not found in `_InputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062597,"byte_end":1062619,"line_start":25239,"line_end":25239,"column_start":2,"column_end":24,"is_primary":false,"text":[{"text":"\tpub struct _InputArray {","highlight_start":2,"highlight_end":24}],"label":"function or associated item `from_mat_vec` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n_InputArray::default\n_InputArray::new","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062900,"byte_end":1062945,"line_start":25256,"line_end":25256,"column_start":3,"column_end":48,"is_primary":true,"text":[{"text":"\t\tpub fn default() -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":48}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1063229,"byte_end":1063307,"line_start":25266,"line_end":25266,"column_start":3,"column_end":81,"is_primary":true,"text":[{"text":"\t\tpub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":81}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `from_bool_vec` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24769,"byte_end":24781,"line_start":786,"line_end":786,"column_start":35,"column_end":47,"is_primary":true,"text":[{"text":"input_output_array_vector! { Mat, from_mat_vec, from_mat_vec_mut }","highlight_start":35,"highlight_end":47}],"label":null,"suggested_replacement":"from_bool_vec","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_mat_vec` found for struct `_InputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:786:35\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m786\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { Mat, from_mat_vec, from_mat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_InputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25239:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _InputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_mat_vec` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n _InputArray::default\n _InputArray::new\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25256:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25256\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn default() -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m25266\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `from_bool_vec` with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m786\u001b[0m \u001b[91m- \u001b[0minput_output_array_vector! { Mat, \u001b[91mfrom_mat_vec\u001b[0m, from_mat_vec_mut }\n \u001b[1m\u001b[94m786\u001b[0m \u001b[92m+ \u001b[0minput_output_array_vector! { Mat, \u001b[92mfrom_bool_vec\u001b[0m, from_mat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_mat_vec_mut` found for struct `_OutputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24783,"byte_end":24799,"line_start":786,"line_end":786,"column_start":49,"column_end":65,"is_primary":true,"text":[{"text":"input_output_array_vector! { Mat, from_mat_vec, from_mat_vec_mut }","highlight_start":49,"highlight_end":65}],"label":"function or associated item not found in `_OutputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1085096,"byte_end":1085119,"line_start":25899,"line_end":25899,"column_start":2,"column_end":25,"is_primary":false,"text":[{"text":"\tpub struct _OutputArray {","highlight_start":2,"highlight_end":25}],"label":"function or associated item `from_mat_vec_mut` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_mat_vec_mut` found for struct `_OutputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:786:49\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m786\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { Mat, from_mat_vec, from_mat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_OutputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25899:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25899\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _OutputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_mat_vec_mut` not found for this struct\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_mat_vec_mut` found for struct `_InputOutputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":24783,"byte_end":24799,"line_start":786,"line_end":786,"column_start":49,"column_end":65,"is_primary":true,"text":[{"text":"input_output_array_vector! { Mat, from_mat_vec, from_mat_vec_mut }","highlight_start":49,"highlight_end":65}],"label":"function or associated item not found in `_InputOutputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1080473,"byte_end":1080501,"line_start":25781,"line_end":25781,"column_start":2,"column_end":30,"is_primary":false,"text":[{"text":"\tpub struct _InputOutputArray {","highlight_start":2,"highlight_end":30}],"label":"function or associated item `from_mat_vec_mut` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `_InputOutputArray` consider using one of the following associated functions:\n_InputOutputArray::default\n_InputOutputArray::new","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1080913,"byte_end":1080964,"line_start":25799,"line_end":25799,"column_start":3,"column_end":54,"is_primary":true,"text":[{"text":"\t\tpub fn default() -> Result<core::_InputOutputArray> {","highlight_start":3,"highlight_end":54}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1081266,"byte_end":1081350,"line_start":25809,"line_end":25809,"column_start":3,"column_end":87,"is_primary":true,"text":[{"text":"\t\tpub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputOutputArray> {","highlight_start":3,"highlight_end":87}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_mat_vec_mut` found for struct `_InputOutputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:786:49\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m786\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { Mat, from_mat_vec, from_mat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_InputOutputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25781:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25781\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _InputOutputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_mat_vec_mut` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `_InputOutputArray` consider using one of the following associated functions:\n _InputOutputArray::default\n _InputOutputArray::new\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25799:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25799\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn default() -> Result<core::_InputOutputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m25809\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputOutputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_umat` found for struct `_InputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26593,"byte_end":26602,"line_start":845,"line_end":845,"column_start":29,"column_end":38,"is_primary":true,"text":[{"text":"input_output_array! { UMat, from_umat, from_umat_mut }","highlight_start":29,"highlight_end":38}],"label":"function or associated item not found in `_InputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062597,"byte_end":1062619,"line_start":25239,"line_end":25239,"column_start":2,"column_end":24,"is_primary":false,"text":[{"text":"\tpub struct _InputArray {","highlight_start":2,"highlight_end":24}],"label":"function or associated item `from_umat` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n_InputArray::default\n_InputArray::new","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062900,"byte_end":1062945,"line_start":25256,"line_end":25256,"column_start":3,"column_end":48,"is_primary":true,"text":[{"text":"\t\tpub fn default() -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":48}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1063229,"byte_end":1063307,"line_start":25266,"line_end":25266,"column_start":3,"column_end":81,"is_primary":true,"text":[{"text":"\t\tpub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":81}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `from_raw` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26593,"byte_end":26602,"line_start":845,"line_end":845,"column_start":29,"column_end":38,"is_primary":true,"text":[{"text":"input_output_array! { UMat, from_umat, from_umat_mut }","highlight_start":29,"highlight_end":38}],"label":null,"suggested_replacement":"from_raw","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_umat` found for struct `_InputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:845:29\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m845\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array! { UMat, from_umat, from_umat_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_InputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25239:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _InputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_umat` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n _InputArray::default\n _InputArray::new\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25256:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25256\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn default() -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m25266\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `from_raw` with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m845\u001b[0m \u001b[91m- \u001b[0minput_output_array! { UMat, \u001b[91mfrom_umat\u001b[0m, from_umat_mut }\n \u001b[1m\u001b[94m845\u001b[0m \u001b[92m+ \u001b[0minput_output_array! { UMat, \u001b[92mfrom_raw\u001b[0m, from_umat_mut }\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_umat_mut` found for struct `_OutputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4498,"byte_end":4507,"line_start":131,"line_end":131,"column_start":33,"column_end":42,"is_primary":false,"text":[{"text":"\t\t\t\t$crate::core::_OutputArray::$mut_cons(self)","highlight_start":33,"highlight_end":42}],"label":"due to this macro variable","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26565,"byte_end":26619,"line_start":845,"line_end":845,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"input_output_array! { UMat, from_umat, from_umat_mut }","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26604,"byte_end":26617,"line_start":845,"line_end":845,"column_start":40,"column_end":53,"is_primary":true,"text":[{"text":"input_output_array! { UMat, from_umat, from_umat_mut }","highlight_start":40,"highlight_end":53}],"label":"function or associated item not found in `_OutputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1085096,"byte_end":1085119,"line_start":25899,"line_end":25899,"column_start":2,"column_end":25,"is_primary":false,"text":[{"text":"\tpub struct _OutputArray {","highlight_start":2,"highlight_end":25}],"label":"function or associated item `from_umat_mut` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_umat_mut` found for struct `_OutputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:845:40\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m845\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array! { UMat, from_umat, from_umat_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_OutputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:131:33\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m131\u001b[0m \u001b[1m\u001b[94m|\u001b[0m $crate::core::_OutputArray::$mut_cons(self)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------\u001b[0m \u001b[1m\u001b[94mdue to this macro variable\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25899:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25899\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _OutputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_umat_mut` not found for this struct\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_umat_mut` found for struct `_InputOutputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4498,"byte_end":4507,"line_start":131,"line_end":131,"column_start":33,"column_end":42,"is_primary":false,"text":[{"text":"\t\t\t\t$crate::core::_OutputArray::$mut_cons(self)","highlight_start":33,"highlight_end":42}],"label":"due to this macro variable","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26565,"byte_end":26619,"line_start":845,"line_end":845,"column_start":1,"column_end":55,"is_primary":false,"text":[{"text":"input_output_array! { UMat, from_umat, from_umat_mut }","highlight_start":1,"highlight_end":55}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26604,"byte_end":26617,"line_start":845,"line_end":845,"column_start":40,"column_end":53,"is_primary":true,"text":[{"text":"input_output_array! { UMat, from_umat, from_umat_mut }","highlight_start":40,"highlight_end":53}],"label":"function or associated item not found in `_InputOutputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1080473,"byte_end":1080501,"line_start":25781,"line_end":25781,"column_start":2,"column_end":30,"is_primary":false,"text":[{"text":"\tpub struct _InputOutputArray {","highlight_start":2,"highlight_end":30}],"label":"function or associated item `from_umat_mut` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `_InputOutputArray` consider using one of the following associated functions:\n_InputOutputArray::default\n_InputOutputArray::new","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1080913,"byte_end":1080964,"line_start":25799,"line_end":25799,"column_start":3,"column_end":54,"is_primary":true,"text":[{"text":"\t\tpub fn default() -> Result<core::_InputOutputArray> {","highlight_start":3,"highlight_end":54}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1081266,"byte_end":1081350,"line_start":25809,"line_end":25809,"column_start":3,"column_end":87,"is_primary":true,"text":[{"text":"\t\tpub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputOutputArray> {","highlight_start":3,"highlight_end":87}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_umat_mut` found for struct `_InputOutputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:845:40\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m845\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array! { UMat, from_umat, from_umat_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_InputOutputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:131:33\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m131\u001b[0m \u001b[1m\u001b[94m|\u001b[0m $crate::core::_OutputArray::$mut_cons(self)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------\u001b[0m \u001b[1m\u001b[94mdue to this macro variable\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25781:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25781\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _InputOutputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_umat_mut` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `_InputOutputArray` consider using one of the following associated functions:\n _InputOutputArray::default\n _InputOutputArray::new\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25799:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25799\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn default() -> Result<core::_InputOutputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m25809\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputOutputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_umat_vec` found for struct `_InputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5722,"byte_end":5733,"line_start":166,"line_end":166,"column_start":32,"column_end":43,"is_primary":false,"text":[{"text":"\t\t\t\t$crate::core::_InputArray::$const_cons(self.as_non_ref_vec())","highlight_start":32,"highlight_end":43}],"label":"due to this macro variable","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26655,"byte_end":26668,"line_start":846,"line_end":846,"column_start":36,"column_end":49,"is_primary":true,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":36,"highlight_end":49}],"label":"function or associated item not found in `_InputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062597,"byte_end":1062619,"line_start":25239,"line_end":25239,"column_start":2,"column_end":24,"is_primary":false,"text":[{"text":"\tpub struct _InputArray {","highlight_start":2,"highlight_end":24}],"label":"function or associated item `from_umat_vec` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n_InputArray::default\n_InputArray::new","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062900,"byte_end":1062945,"line_start":25256,"line_end":25256,"column_start":3,"column_end":48,"is_primary":true,"text":[{"text":"\t\tpub fn default() -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":48}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1063229,"byte_end":1063307,"line_start":25266,"line_end":25266,"column_start":3,"column_end":81,"is_primary":true,"text":[{"text":"\t\tpub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":81}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `from_bool_vec` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26655,"byte_end":26668,"line_start":846,"line_end":846,"column_start":36,"column_end":49,"is_primary":true,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":36,"highlight_end":49}],"label":null,"suggested_replacement":"from_bool_vec","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_umat_vec` found for struct `_InputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:36\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_InputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:166:32\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m166\u001b[0m \u001b[1m\u001b[94m|\u001b[0m $crate::core::_InputArray::$const_cons(self.as_non_ref_vec())\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----------\u001b[0m \u001b[1m\u001b[94mdue to this macro variable\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25239:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _InputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_umat_vec` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n _InputArray::default\n _InputArray::new\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25256:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25256\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn default() -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m25266\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `from_bool_vec` with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m846\u001b[0m \u001b[91m- \u001b[0minput_output_array_vector! { UMat, \u001b[91mfrom_umat_vec\u001b[0m, from_umat_vec_mut }\n \u001b[1m\u001b[94m846\u001b[0m \u001b[92m+ \u001b[0minput_output_array_vector! { UMat, \u001b[92mfrom_bool_vec\u001b[0m, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"the method `as_non_ref_vec` exists for reference `&vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`, but its trait bounds were not satisfied","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5739,"byte_end":5753,"line_start":166,"line_end":166,"column_start":49,"column_end":63,"is_primary":true,"text":[{"text":"\t\t\t\t$crate::core::_InputArray::$const_cons(self.as_non_ref_vec())","highlight_start":49,"highlight_end":63}],"label":"method cannot be called on `&vector::Vector<boxed_ref::BoxedRef<'_, UMat>>` due to unsatisfied trait bounds","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":"doesn't satisfy `_: VectorExtern<BoxedRef<'_, UMat>>` or `_: VectorExtern<UMat>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the following trait bounds were not satisfied:\n`vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>`\n`vector::Vector<boxed_ref::BoxedRef<'_, UMat>>: vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":8580,"byte_end":8609,"line_start":384,"line_end":384,"column_start":8,"column_end":37,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<BoxedRef<'b, T>>,","highlight_start":8,"highlight_end":37}],"label":"unsatisfied trait bound introduced here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":8543,"byte_end":8566,"line_start":382,"line_end":382,"column_start":20,"column_end":43,"is_primary":false,"text":[{"text":"impl<'b, T: Boxed> Vector<BoxedRef<'b, T>>","highlight_start":20,"highlight_end":43}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":8623,"byte_end":8638,"line_start":385,"line_end":385,"column_start":13,"column_end":28,"is_primary":true,"text":[{"text":"\tVector<T>: VectorExtern<T>,","highlight_start":13,"highlight_end":28}],"label":"unsatisfied trait bound introduced here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the trait `vector::vector_extern::VectorExtern` must be implemented","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector/vector_extern.rs","byte_start":223,"byte_end":248,"line_start":7,"line_end":7,"column_start":1,"column_end":26,"is_primary":true,"text":[{"text":"pub trait VectorExtern<T> {","highlight_start":1,"highlight_end":26}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: the method `as_non_ref_vec` exists for reference `&vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`, but its trait bounds were not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:166:49\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m166\u001b[0m \u001b[1m\u001b[94m|\u001b[0m $crate::core::_InputArray::$const_cons(self.as_non_ref_vec())\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod cannot be called on `&vector::Vector<boxed_ref::BoxedRef<'_, UMat>>` due to unsatisfied trait bounds\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m--------------------\u001b[0m \u001b[1m\u001b[94mdoesn't satisfy `_: VectorExtern<BoxedRef<'_, UMat>>` or `_: VectorExtern<UMat>`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: the following trait bounds were not satisfied:\n `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>`\n `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>: vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:384:8\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m382\u001b[0m \u001b[1m\u001b[94m|\u001b[0m impl<'b, T: Boxed> Vector<BoxedRef<'b, T>>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----------------------\u001b[0m\n\u001b[1m\u001b[94m383\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n\u001b[1m\u001b[94m384\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<BoxedRef<'b, T>>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92munsatisfied trait bound introduced here\u001b[0m\n\u001b[1m\u001b[94m385\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Vector<T>: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92munsatisfied trait bound introduced here\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: the trait `vector::vector_extern::VectorExtern` must be implemented\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector/vector_extern.rs:7:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m7\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub trait VectorExtern<T> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6310,"byte_end":6331,"line_start":184,"line_end":184,"column_start":5,"column_end":26,"is_primary":true,"text":[{"text":"\t\t\t\t(*self).input_array()","highlight_start":5,"highlight_end":26}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5769,"byte_end":5866,"line_start":170,"line_end":170,"column_start":3,"column_end":100,"is_primary":false,"text":[{"text":"\t\t$crate::input_array_ref_forward! { $crate::core::Vector<$crate::boxed_ref::BoxedRef<'_, $type>> }","highlight_start":3,"highlight_end":100}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6084,"byte_end":6120,"line_start":179,"line_end":179,"column_start":1,"column_end":37,"is_primary":false,"text":[{"text":"macro_rules! input_array_ref_forward {","highlight_start":1,"highlight_end":37}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-15398586723224459864.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `Vector<BoxedRef<'_, UMat>>: VectorExtern<BoxedRef<'_, UMat>>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:184:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m184\u001b[0m \u001b[1m\u001b[94m|\u001b[0m (*self).input_array()\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<boxed_ref::BoxedRef<'_, UMat>>` is not implemented for `vector::Vector<boxed_ref::BoxedRef<'_, UMat>>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: the full name for the type has been written to '/Users/accusys/video_yolo_player/target/debug/deps/opencv-934b04ec3cce8632.long-type-15398586723224459864.txt'\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider using `--verbose` to print the full type name to the console\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_umat_vec` found for struct `_InputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26655,"byte_end":26668,"line_start":846,"line_end":846,"column_start":36,"column_end":49,"is_primary":true,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":36,"highlight_end":49}],"label":"function or associated item not found in `_InputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062597,"byte_end":1062619,"line_start":25239,"line_end":25239,"column_start":2,"column_end":24,"is_primary":false,"text":[{"text":"\tpub struct _InputArray {","highlight_start":2,"highlight_end":24}],"label":"function or associated item `from_umat_vec` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n_InputArray::default\n_InputArray::new","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062900,"byte_end":1062945,"line_start":25256,"line_end":25256,"column_start":3,"column_end":48,"is_primary":true,"text":[{"text":"\t\tpub fn default() -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":48}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1063229,"byte_end":1063307,"line_start":25266,"line_end":25266,"column_start":3,"column_end":81,"is_primary":true,"text":[{"text":"\t\tpub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":81}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `from_bool_vec` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26655,"byte_end":26668,"line_start":846,"line_end":846,"column_start":36,"column_end":49,"is_primary":true,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":36,"highlight_end":49}],"label":null,"suggested_replacement":"from_bool_vec","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_umat_vec` found for struct `_InputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:36\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_InputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25239:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _InputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_umat_vec` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n _InputArray::default\n _InputArray::new\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25256:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25256\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn default() -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m25266\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `from_bool_vec` with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m846\u001b[0m \u001b[91m- \u001b[0minput_output_array_vector! { UMat, \u001b[91mfrom_umat_vec\u001b[0m, from_umat_vec_mut }\n \u001b[1m\u001b[94m846\u001b[0m \u001b[92m+ \u001b[0minput_output_array_vector! { UMat, \u001b[92mfrom_bool_vec\u001b[0m, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6310,"byte_end":6331,"line_start":184,"line_end":184,"column_start":5,"column_end":26,"is_primary":true,"text":[{"text":"\t\t\t\t(*self).input_array()","highlight_start":5,"highlight_end":26}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4134,"byte_end":4176,"line_start":122,"line_end":122,"column_start":3,"column_end":45,"is_primary":false,"text":[{"text":"\t\t$crate::input_array_ref_forward! { $type }","highlight_start":3,"highlight_end":45}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4240,"byte_end":4290,"line_start":126,"line_end":126,"column_start":3,"column_end":53,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $type, $const_cons }","highlight_start":3,"highlight_end":53}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6084,"byte_end":6120,"line_start":179,"line_end":179,"column_start":1,"column_end":37,"is_primary":false,"text":[{"text":"macro_rules! input_array_ref_forward {","highlight_start":1,"highlight_end":37}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:184:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m184\u001b[0m \u001b[1m\u001b[94m|\u001b[0m (*self).input_array()\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::input_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_umat_vec_mut` found for struct `_OutputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26670,"byte_end":26687,"line_start":846,"line_end":846,"column_start":51,"column_end":68,"is_primary":true,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":51,"highlight_end":68}],"label":"function or associated item not found in `_OutputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1085096,"byte_end":1085119,"line_start":25899,"line_end":25899,"column_start":2,"column_end":25,"is_primary":false,"text":[{"text":"\tpub struct _OutputArray {","highlight_start":2,"highlight_end":25}],"label":"function or associated item `from_umat_vec_mut` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_umat_vec_mut` found for struct `_OutputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:51\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_OutputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25899:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25899\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _OutputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_umat_vec_mut` not found for this struct\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_umat_vec_mut` found for struct `_InputOutputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26670,"byte_end":26687,"line_start":846,"line_end":846,"column_start":51,"column_end":68,"is_primary":true,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":51,"highlight_end":68}],"label":"function or associated item not found in `_InputOutputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1080473,"byte_end":1080501,"line_start":25781,"line_end":25781,"column_start":2,"column_end":30,"is_primary":false,"text":[{"text":"\tpub struct _InputOutputArray {","highlight_start":2,"highlight_end":30}],"label":"function or associated item `from_umat_vec_mut` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `_InputOutputArray` consider using one of the following associated functions:\n_InputOutputArray::default\n_InputOutputArray::new","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1080913,"byte_end":1080964,"line_start":25799,"line_end":25799,"column_start":3,"column_end":54,"is_primary":true,"text":[{"text":"\t\tpub fn default() -> Result<core::_InputOutputArray> {","highlight_start":3,"highlight_end":54}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1081266,"byte_end":1081350,"line_start":25809,"line_end":25809,"column_start":3,"column_end":87,"is_primary":true,"text":[{"text":"\t\tpub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputOutputArray> {","highlight_start":3,"highlight_end":87}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_umat_vec_mut` found for struct `_InputOutputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:51\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_InputOutputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25781:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25781\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _InputOutputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_umat_vec_mut` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `_InputOutputArray` consider using one of the following associated functions:\n _InputOutputArray::default\n _InputOutputArray::new\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25799:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25799\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn default() -> Result<core::_InputOutputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m25809\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputOutputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6748,"byte_end":6770,"line_start":198,"line_end":198,"column_start":5,"column_end":27,"is_primary":true,"text":[{"text":"\t\t\t\t(*self).output_array()","highlight_start":5,"highlight_end":27}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4779,"byte_end":4822,"line_start":142,"line_end":142,"column_start":3,"column_end":46,"is_primary":false,"text":[{"text":"\t\t$crate::output_array_ref_forward! { $type }","highlight_start":3,"highlight_end":46}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::output_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6507,"byte_end":6544,"line_start":193,"line_end":193,"column_start":1,"column_end":38,"is_primary":false,"text":[{"text":"macro_rules! output_array_ref_forward {","highlight_start":1,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:198:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m198\u001b[0m \u001b[1m\u001b[94m|\u001b[0m (*self).output_array()\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::output_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func<T: Foo>(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func<T: Foo>(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func<T>(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func<T: fmt::Debug>(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6980,"byte_end":7008,"line_start":205,"line_end":205,"column_start":5,"column_end":33,"is_primary":true,"text":[{"text":"\t\t\t\t(*self).input_output_array()","highlight_start":5,"highlight_end":33}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4779,"byte_end":4822,"line_start":142,"line_end":142,"column_start":3,"column_end":46,"is_primary":false,"text":[{"text":"\t\t$crate::output_array_ref_forward! { $type }","highlight_start":3,"highlight_end":46}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":5870,"byte_end":5953,"line_start":172,"line_end":172,"column_start":3,"column_end":86,"is_primary":false,"text":[{"text":"\t\t$crate::input_output_array! { $crate::core::Vector<$type>, $const_cons, $mut_cons }","highlight_start":3,"highlight_end":86}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":26620,"byte_end":26689,"line_start":846,"line_end":846,"column_start":1,"column_end":70,"is_primary":false,"text":[{"text":"input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }","highlight_start":1,"highlight_end":70}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array_vector!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4861,"byte_end":4899,"line_start":148,"line_end":148,"column_start":1,"column_end":39,"is_primary":false,"text":[{"text":"macro_rules! input_output_array_vector {","highlight_start":1,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::output_array_ref_forward!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":6507,"byte_end":6544,"line_start":193,"line_end":193,"column_start":1,"column_end":38,"is_primary":false,"text":[{"text":"macro_rules! output_array_ref_forward {","highlight_start":1,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":594,"byte_end":614,"line_start":20,"line_end":20,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub struct Vector<T>","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\nand 32 others","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `vector::Vector`","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":605,"byte_end":611,"line_start":20,"line_end":20,"column_start":12,"column_end":18,"is_primary":false,"text":[{"text":"pub struct Vector<T>","highlight_start":12,"highlight_end":18}],"label":"required by a bound in this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs","byte_start":628,"byte_end":643,"line_start":22,"line_end":22,"column_start":8,"column_end":23,"is_primary":true,"text":[{"text":"\tSelf: VectorExtern<T>,","highlight_start":8,"highlight_end":23}],"label":"required by this bound in `Vector`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0277]\u001b[0m\u001b[1m: the trait bound `vector::Vector<UMat>: vector::vector_extern::VectorExtern<UMat>` is not satisfied\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:205:5\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m205\u001b[0m \u001b[1m\u001b[94m|\u001b[0m (*self).input_output_array()\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91munsatisfied trait bound\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:846:1\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m846\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array_vector! { UMat, from_umat_vec, from_umat_vec_mut }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m---------------------------------------------------------------------\u001b[0m \u001b[1m\u001b[94min this macro invocation\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: the trait `vector::vector_extern::VectorExtern<UMat>` is not implemented for `vector::Vector<UMat>`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:20:1\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[96m^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: the following other types implement trait `vector::vector_extern::VectorExtern<T>`:\n `vector::Vector<DMatch>` implements `vector::vector_extern::VectorExtern<DMatch>`\n `vector::Vector<KeyPoint>` implements `vector::vector_extern::VectorExtern<KeyPoint>`\n `vector::Vector<PlatformInfo>` implements `vector::vector_extern::VectorExtern<PlatformInfo>`\n `vector::Vector<RotatedRect>` implements `vector::vector_extern::VectorExtern<RotatedRect>`\n `vector::Vector<String>` implements `vector::vector_extern::VectorExtern<String>`\n `vector::Vector<Target>` implements `vector::vector_extern::VectorExtern<Target>`\n `vector::Vector<VideoCaptureAPIs>` implements `vector::vector_extern::VectorExtern<VideoCaptureAPIs>`\n `vector::Vector<bool>` implements `vector::vector_extern::VectorExtern<bool>`\n and 32 others\n\u001b[1m\u001b[92mnote\u001b[0m: required by a bound in `vector::Vector`\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/vector.rs:22:8\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m20\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct Vector<T>\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m------\u001b[0m \u001b[1m\u001b[94mrequired by a bound in this struct\u001b[0m\n \u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m|\u001b[0m where\n \u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Self: VectorExtern<T>,\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[92mrequired by this bound in `Vector`\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this error originates in the macro `$crate::output_array_ref_forward` which comes from the expansion of the macro `input_output_array_vector` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"}
|
|
{"$message_type":"diagnostic","message":"no function or associated item named `from_matexpr` found for struct `_InputArray` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":4104,"byte_end":4115,"line_start":118,"line_end":118,"column_start":32,"column_end":43,"is_primary":false,"text":[{"text":"\t\t\t\t$crate::core::_InputArray::$const_cons(self)","highlight_start":32,"highlight_end":43}],"label":"due to this macro variable","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":28208,"byte_end":28253,"line_start":921,"line_end":921,"column_start":1,"column_end":46,"is_primary":false,"text":[{"text":"input_output_array! { MatExpr, from_matexpr }","highlight_start":1,"highlight_end":46}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"input_output_array!","def_site_span":{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs","byte_start":3837,"byte_end":3868,"line_start":113,"line_end":113,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"macro_rules! input_output_array {","highlight_start":1,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":28239,"byte_end":28251,"line_start":921,"line_end":921,"column_start":32,"column_end":44,"is_primary":true,"text":[{"text":"input_output_array! { MatExpr, from_matexpr }","highlight_start":32,"highlight_end":44}],"label":"function or associated item not found in `_InputArray`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062597,"byte_end":1062619,"line_start":25239,"line_end":25239,"column_start":2,"column_end":24,"is_primary":false,"text":[{"text":"\tpub struct _InputArray {","highlight_start":2,"highlight_end":24}],"label":"function or associated item `from_matexpr` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n_InputArray::default\n_InputArray::new","code":null,"level":"note","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1062900,"byte_end":1062945,"line_start":25256,"line_end":25256,"column_start":3,"column_end":48,"is_primary":true,"text":[{"text":"\t\tpub fn default() -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":48}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":1063229,"byte_end":1063307,"line_start":25266,"line_end":25266,"column_start":3,"column_end":81,"is_primary":true,"text":[{"text":"\t\tpub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {","highlight_start":3,"highlight_end":81}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"there is an associated function `from_raw` with a similar name","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs","byte_start":28239,"byte_end":28251,"line_start":921,"line_end":921,"column_start":32,"column_end":44,"is_primary":true,"text":[{"text":"input_output_array! { MatExpr, from_matexpr }","highlight_start":32,"highlight_end":44}],"label":null,"suggested_replacement":"from_raw","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no function or associated item named `from_matexpr` found for struct `_InputArray` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat.rs:921:32\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m921\u001b[0m \u001b[1m\u001b[94m|\u001b[0m input_output_array! { MatExpr, from_matexpr }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mfunction or associated item not found in `_InputArray`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/input_output_array.rs:118:32\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m118\u001b[0m \u001b[1m\u001b[94m|\u001b[0m $crate::core::_InputArray::$const_cons(self)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----------\u001b[0m \u001b[1m\u001b[94mdue to this macro variable\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m::: \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25239:2\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25239\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub struct _InputArray {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m----------------------\u001b[0m \u001b[1m\u001b[94mfunction or associated item `from_matexpr` not found for this struct\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: if you're trying to build a new `_InputArray` consider using one of the following associated functions:\n _InputArray::default\n _InputArray::new\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:25256:3\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m25256\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn default() -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m25266\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub unsafe fn new(_flags: i32, _obj: *mut c_void) -> Result<core::_InputArray> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: there is an associated function `from_raw` with a similar name\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m921\u001b[0m \u001b[91m- \u001b[0minput_output_array! { MatExpr, \u001b[91mfrom_matexpr\u001b[0m }\n \u001b[1m\u001b[94m921\u001b[0m \u001b[92m+ \u001b[0minput_output_array! { MatExpr, \u001b[92mfrom_raw\u001b[0m }\n \u001b[1m\u001b[94m|\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `mul_def` found for reference `&impl MatTraitConst` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat_ops.rs","byte_start":890,"byte_end":897,"line_start":43,"line_end":43,"column_start":4,"column_end":11,"is_primary":true,"text":[{"text":"\ta.mul_def(b)","highlight_start":4,"highlight_end":11}],"label":"method not found in `&impl MatTraitConst`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the type parameter is bounded by the trait","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `mul_def`, perhaps you need to restrict type parameter `impl MatTraitConst` with one of them:","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat_ops.rs","byte_start":823,"byte_end":823,"line_start":42,"line_end":42,"column_start":24,"column_end":24,"is_primary":true,"text":[{"text":"fn elemmul_mat_mat(a: &impl MatTraitConst, b: &impl ToInputArray) -> Result<MatExpr> {","highlight_start":24,"highlight_end":24}],"label":null,"suggested_replacement":"(","suggestion_applicability":"MaybeIncorrect","expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat_ops.rs","byte_start":841,"byte_end":841,"line_start":42,"line_end":42,"column_start":42,"column_end":42,"is_primary":true,"text":[{"text":"fn elemmul_mat_mat(a: &impl MatTraitConst, b: &impl ToInputArray) -> Result<MatExpr> {","highlight_start":42,"highlight_end":42}],"label":null,"suggested_replacement":" + hub::core::MatExprTraitConst)","suggestion_applicability":"MaybeIncorrect","expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat_ops.rs","byte_start":823,"byte_end":823,"line_start":42,"line_end":42,"column_start":24,"column_end":24,"is_primary":true,"text":[{"text":"fn elemmul_mat_mat(a: &impl MatTraitConst, b: &impl ToInputArray) -> Result<MatExpr> {","highlight_start":24,"highlight_end":24}],"label":null,"suggested_replacement":"(","suggestion_applicability":"MaybeIncorrect","expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat_ops.rs","byte_start":841,"byte_end":841,"line_start":42,"line_end":42,"column_start":42,"column_end":42,"is_primary":true,"text":[{"text":"fn elemmul_mat_mat(a: &impl MatTraitConst, b: &impl ToInputArray) -> Result<MatExpr> {","highlight_start":42,"highlight_end":42}],"label":null,"suggested_replacement":" + hub::core::UMatTraitConst)","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `mul_def` found for reference `&impl MatTraitConst` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat_ops.rs:43:4\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m43\u001b[0m \u001b[1m\u001b[94m|\u001b[0m a.mul_def(b)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&impl MatTraitConst`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the type parameter is bounded by the trait\n\u001b[1m\u001b[96mhelp\u001b[0m: the following traits define an item `mul_def`, perhaps you need to restrict type parameter `impl MatTraitConst` with one of them:\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m42\u001b[0m \u001b[1m\u001b[94m| \u001b[0mfn elemmul_mat_mat(a: &\u001b[92m(\u001b[0mimpl MatTraitConst\u001b[92m + hub::core::MatExprTraitConst)\u001b[0m, b: &impl ToInputArray) -> Result<MatExpr> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+\u001b[0m \u001b[92m+++++++++++++++++++++++++++++++\u001b[0m\n\u001b[1m\u001b[94m42\u001b[0m \u001b[1m\u001b[94m| \u001b[0mfn elemmul_mat_mat(a: &\u001b[92m(\u001b[0mimpl MatTraitConst\u001b[92m + hub::core::UMatTraitConst)\u001b[0m, b: &impl ToInputArray) -> Result<MatExpr> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+\u001b[0m \u001b[92m++++++++++++++++++++++++++++\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `mul_def` found for reference `&impl MatTraitConst` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat_ops.rs","byte_start":1008,"byte_end":1015,"line_start":48,"line_end":48,"column_start":4,"column_end":11,"is_primary":true,"text":[{"text":"\ta.mul_def(b)","highlight_start":4,"highlight_end":11}],"label":"method not found in `&impl MatTraitConst`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the type parameter is bounded by the trait","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `mul_def`, perhaps you need to restrict type parameter `impl MatTraitConst` with one of them:","code":null,"level":"help","spans":[{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat_ops.rs","byte_start":941,"byte_end":941,"line_start":47,"line_end":47,"column_start":28,"column_end":28,"is_primary":true,"text":[{"text":"fn elemmul_mat_matexpr(a: &impl MatTraitConst, b: &impl ToInputArray) -> Result<MatExpr> {","highlight_start":28,"highlight_end":28}],"label":null,"suggested_replacement":"(","suggestion_applicability":"MaybeIncorrect","expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat_ops.rs","byte_start":959,"byte_end":959,"line_start":47,"line_end":47,"column_start":46,"column_end":46,"is_primary":true,"text":[{"text":"fn elemmul_mat_matexpr(a: &impl MatTraitConst, b: &impl ToInputArray) -> Result<MatExpr> {","highlight_start":46,"highlight_end":46}],"label":null,"suggested_replacement":" + hub::core::MatExprTraitConst)","suggestion_applicability":"MaybeIncorrect","expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat_ops.rs","byte_start":941,"byte_end":941,"line_start":47,"line_end":47,"column_start":28,"column_end":28,"is_primary":true,"text":[{"text":"fn elemmul_mat_matexpr(a: &impl MatTraitConst, b: &impl ToInputArray) -> Result<MatExpr> {","highlight_start":28,"highlight_end":28}],"label":null,"suggested_replacement":"(","suggestion_applicability":"MaybeIncorrect","expansion":null},{"file_name":"/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat_ops.rs","byte_start":959,"byte_end":959,"line_start":47,"line_end":47,"column_start":46,"column_end":46,"is_primary":true,"text":[{"text":"fn elemmul_mat_matexpr(a: &impl MatTraitConst, b: &impl ToInputArray) -> Result<MatExpr> {","highlight_start":46,"highlight_end":46}],"label":null,"suggested_replacement":" + hub::core::UMatTraitConst)","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `mul_def` found for reference `&impl MatTraitConst` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/opencv-0.98.1/src/manual/core/mat_ops.rs:48:4\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m48\u001b[0m \u001b[1m\u001b[94m|\u001b[0m a.mul_def(b)\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&impl MatTraitConst`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: items from traits can only be used if the type parameter is bounded by the trait\n\u001b[1m\u001b[96mhelp\u001b[0m: the following traits define an item `mul_def`, perhaps you need to restrict type parameter `impl MatTraitConst` with one of them:\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m47\u001b[0m \u001b[1m\u001b[94m| \u001b[0mfn elemmul_mat_matexpr(a: &\u001b[92m(\u001b[0mimpl MatTraitConst\u001b[92m + hub::core::MatExprTraitConst)\u001b[0m, b: &impl ToInputArray) -> Result<MatExpr> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+\u001b[0m \u001b[92m+++++++++++++++++++++++++++++++\u001b[0m\n\u001b[1m\u001b[94m47\u001b[0m \u001b[1m\u001b[94m| \u001b[0mfn elemmul_mat_matexpr(a: &\u001b[92m(\u001b[0mimpl MatTraitConst\u001b[92m + hub::core::UMatTraitConst)\u001b[0m, b: &impl ToInputArray) -> Result<MatExpr> {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+\u001b[0m \u001b[92m++++++++++++++++++++++++++++\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_DMatch` found for reference `&DMatch` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":592434,"byte_end":592447,"line_start":12921,"line_end":12921,"column_start":63,"column_end":76,"is_primary":true,"text":[{"text":"\t\t\tunsafe { sys::cv_DMatch_operatorL_const_const_DMatchR(self.as_raw_DMatch(), &m, ocvrs_return.as_mut_ptr()) };","highlight_start":63,"highlight_end":76}],"label":"method not found in `&DMatch`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_DMatch` found for reference `&DMatch` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:12921:63\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m12921\u001b[0m \u001b[1m\u001b[94m|\u001b[0m unsafe { sys::cv_DMatch_operatorL_const_const_DMatchR(self.as_raw_DMatch(), &m, ocvrs_return.as_mut_ptr()) };\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&DMatch`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_RotatedRect` found for reference `&RotatedRect` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":930184,"byte_end":930202,"line_start":21591,"line_end":21591,"column_start":61,"column_end":79,"is_primary":true,"text":[{"text":"\t\t\tunsafe { sys::cv_RotatedRect_points_const_Point2fXX(self.as_raw_RotatedRect(), pts, ocvrs_return.as_mut_ptr()) };","highlight_start":61,"highlight_end":79}],"label":"method not found in `&RotatedRect`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_RotatedRect` found for reference `&RotatedRect` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:21591:61\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m21591\u001b[0m \u001b[1m\u001b[94m|\u001b[0m unsafe { sys::cv_RotatedRect_points_const_Point2fXX(self.as_raw_RotatedRect(), pts, ocvrs_return.as_mut_ptr()) };\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&RotatedRect`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_RotatedRect` found for reference `&RotatedRect` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":930527,"byte_end":930545,"line_start":21600,"line_end":21600,"column_start":68,"column_end":86,"is_primary":true,"text":[{"text":"\t\t\tunsafe { sys::cv_RotatedRect_points_const_vectorLPoint2fGR(self.as_raw_RotatedRect(), pts.as_raw_mut_VectorOfPoint2f(), ocvrs_return.as_mut_ptr()) };","highlight_start":68,"highlight_end":86}],"label":"method not found in `&RotatedRect`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_RotatedRect` found for reference `&RotatedRect` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:21600:68\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m21600\u001b[0m \u001b[1m\u001b[94m|\u001b[0m unsafe { sys::cv_RotatedRect_points_const_vectorLPoint2fGR(self.as_raw_RotatedRect(), pts.as_raw_mut_VectorOfPoint2f(), ocvrs_return.a\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&RotatedRect`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_RotatedRect` found for reference `&RotatedRect` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":930946,"byte_end":930964,"line_start":21610,"line_end":21610,"column_start":57,"column_end":75,"is_primary":true,"text":[{"text":"\t\t\tunsafe { sys::cv_RotatedRect_boundingRect_const(self.as_raw_RotatedRect(), ocvrs_return.as_mut_ptr()) };","highlight_start":57,"highlight_end":75}],"label":"method not found in `&RotatedRect`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_RotatedRect` found for reference `&RotatedRect` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:21610:57\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m21610\u001b[0m \u001b[1m\u001b[94m|\u001b[0m unsafe { sys::cv_RotatedRect_boundingRect_const(self.as_raw_RotatedRect(), ocvrs_return.as_mut_ptr()) };\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&RotatedRect`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_RotatedRect` found for reference `&RotatedRect` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":931377,"byte_end":931395,"line_start":21620,"line_end":21620,"column_start":59,"column_end":77,"is_primary":true,"text":[{"text":"\t\t\tunsafe { sys::cv_RotatedRect_boundingRect2f_const(self.as_raw_RotatedRect(), ocvrs_return.as_mut_ptr()) };","highlight_start":59,"highlight_end":77}],"label":"method not found in `&RotatedRect`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_RotatedRect` found for reference `&RotatedRect` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:21620:59\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m21620\u001b[0m \u001b[1m\u001b[94m|\u001b[0m unsafe { sys::cv_RotatedRect_boundingRect2f_const(self.as_raw_RotatedRect(), ocvrs_return.as_mut_ptr()) };\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&RotatedRect`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_TermCriteria` found for reference `&TermCriteria` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs","byte_start":994258,"byte_end":994277,"line_start":23340,"line_end":23340,"column_start":53,"column_end":72,"is_primary":true,"text":[{"text":"\t\t\tunsafe { sys::cv_TermCriteria_isValid_const(self.as_raw_TermCriteria(), ocvrs_return.as_mut_ptr()) };","highlight_start":53,"highlight_end":72}],"label":"method not found in `&TermCriteria`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_TermCriteria` found for reference `&TermCriteria` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/core.rs:23340:53\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m23340\u001b[0m \u001b[1m\u001b[94m|\u001b[0m unsafe { sys::cv_TermCriteria_isValid_const(self.as_raw_TermCriteria(), ocvrs_return.as_mut_ptr()) };\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&TermCriteria`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_VectorOfRect2d` found for reference `&vector::Vector<rect::Rect_<f64>>` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":13646,"byte_end":13667,"line_start":181,"line_end":181,"column_start":146,"column_end":167,"is_primary":true,"text":[{"text":"\t\tunsafe { sys::cv_dnn_NMSBoxesBatched_const_vectorLRect2dGR_const_vectorLfloatGR_const_vectorLintGR_const_float_const_float_vectorLintGR(bboxes.as_raw_VectorOfRect2d(), scores.as_raw_VectorOff32(), class_ids.as_raw_VectorOfi32(), score_threshold, nms_threshold, indices.as_raw_mut_VectorOfi32(), ocvrs_return.as_mut_ptr()) };","highlight_start":146,"highlight_end":167}],"label":"method not found in `&vector::Vector<rect::Rect_<f64>>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_VectorOfRect2d` found for reference `&vector::Vector<rect::Rect_<f64>>` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:181:146\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m181\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0mt_float_vectorLintGR(bboxes.as_raw_VectorOfRect2d(), scores.as_raw_VectorOff32(), class_ids.as_raw_VectorOfi32(), score_threshold, nms\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&vector::Vector<rect::Rect_<f64>>`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_VectorOfRect2d` found for reference `&vector::Vector<rect::Rect_<f64>>` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":14426,"byte_end":14447,"line_start":193,"line_end":193,"column_start":168,"column_end":189,"is_primary":true,"text":[{"text":"\t\tunsafe { sys::cv_dnn_NMSBoxesBatched_const_vectorLRect2dGR_const_vectorLfloatGR_const_vectorLintGR_const_float_const_float_vectorLintGR_const_float_const_int(bboxes.as_raw_VectorOfRect2d(), scores.as_raw_VectorOff32(), class_ids.as_raw_VectorOfi32(), score_threshold, nms_threshold, indices.as_raw_mut_VectorOfi32(), eta, top_k, ocvrs_return.as_mut_ptr()) };","highlight_start":168,"highlight_end":189}],"label":"method not found in `&vector::Vector<rect::Rect_<f64>>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_VectorOfRect2d` found for reference `&vector::Vector<rect::Rect_<f64>>` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:193:168\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m193\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0monst_float_const_int(bboxes.as_raw_VectorOfRect2d(), scores.as_raw_VectorOff32(), class_ids.as_raw_VectorOfi32(), score_threshold, nms\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&vector::Vector<rect::Rect_<f64>>`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_VectorOfRect2d` found for reference `&vector::Vector<rect::Rect_<f64>>` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":18367,"byte_end":18388,"line_start":255,"line_end":255,"column_start":120,"column_end":141,"is_primary":true,"text":[{"text":"\t\tunsafe { sys::cv_dnn_NMSBoxes_const_vectorLRect2dGR_const_vectorLfloatGR_const_float_const_float_vectorLintGR(bboxes.as_raw_VectorOfRect2d(), scores.as_raw_VectorOff32(), score_threshold, nms_threshold, indices.as_raw_mut_VectorOfi32(), ocvrs_return.as_mut_ptr()) };","highlight_start":120,"highlight_end":141}],"label":"method not found in `&vector::Vector<rect::Rect_<f64>>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_VectorOfRect2d` found for reference `&vector::Vector<rect::Rect_<f64>>` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:255:120\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m255\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0mt_float_vectorLintGR(bboxes.as_raw_VectorOfRect2d(), scores.as_raw_VectorOff32(), score_threshold, nms_threshold, indices.as_raw_mut_V\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&vector::Vector<rect::Rect_<f64>>`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_VectorOfRect2d` found for reference `&vector::Vector<rect::Rect_<f64>>` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":19052,"byte_end":19073,"line_start":267,"line_end":267,"column_start":142,"column_end":163,"is_primary":true,"text":[{"text":"\t\tunsafe { sys::cv_dnn_NMSBoxes_const_vectorLRect2dGR_const_vectorLfloatGR_const_float_const_float_vectorLintGR_const_float_const_int(bboxes.as_raw_VectorOfRect2d(), scores.as_raw_VectorOff32(), score_threshold, nms_threshold, indices.as_raw_mut_VectorOfi32(), eta, top_k, ocvrs_return.as_mut_ptr()) };","highlight_start":142,"highlight_end":163}],"label":"method not found in `&vector::Vector<rect::Rect_<f64>>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_VectorOfRect2d` found for reference `&vector::Vector<rect::Rect_<f64>>` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:267:142\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m267\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0monst_float_const_int(bboxes.as_raw_VectorOfRect2d(), scores.as_raw_VectorOff32(), score_threshold, nms_threshold, indices.as_raw_mut_V\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&vector::Vector<rect::Rect_<f64>>`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_VectorOfVectorOff32` found for reference `&vector::Vector<vector::Vector<f32>>` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":439628,"byte_end":439654,"line_start":11472,"line_end":11472,"column_start":144,"column_end":170,"is_primary":true,"text":[{"text":"\t\t\tunsafe { sys::cv_dnn_Layer_tryQuantize_const_vectorLvectorLfloatGGR_const_vectorLvectorLintGGR_LayerParamsR(self.as_raw_mut_Layer(), scales.as_raw_VectorOfVectorOff32(), zeropoints.as_raw_VectorOfVectorOfi32(), params.as_raw_mut_LayerParams(), ocvrs_return.as_mut_ptr()) };","highlight_start":144,"highlight_end":170}],"label":"method not found in `&vector::Vector<vector::Vector<f32>>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_VectorOfVectorOff32` found for reference `&vector::Vector<vector::Vector<f32>>` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:11472:144\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m11472\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0mraw_mut_Layer(), scales.as_raw_VectorOfVectorOff32(), zeropoints.as_raw_VectorOfVectorOfi32(), params.as_raw_mut_LayerParams(), ocvrs_\u001b[1m\u001b[94m...\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&vector::Vector<vector::Vector<f32>>`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_VectorOfPtrOfBackendNode` found for reference `&vector::Vector<manual::core::ptr::Ptr<BackendNode>>` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":446604,"byte_end":446635,"line_start":11621,"line_end":11621,"column_start":185,"column_end":216,"is_primary":true,"text":[{"text":"\t\t\tunsafe { sys::cv_dnn_Layer_initNgraph_const_vectorLPtrLBackendWrapperGGR_const_vectorLPtrLBackendNodeGGR(self.as_raw_mut_Layer(), inputs.as_raw_VectorOfPtrOfBackendWrapper(), nodes.as_raw_VectorOfPtrOfBackendNode(), ocvrs_return.as_mut_ptr()) };","highlight_start":185,"highlight_end":216}],"label":"method not found in `&vector::Vector<manual::core::ptr::Ptr<BackendNode>>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_VectorOfPtrOfBackendNode` found for reference `&vector::Vector<manual::core::ptr::Ptr<BackendNode>>` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:11621:185\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m11621\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0mpper(), nodes.as_raw_VectorOfPtrOfBackendNode(), ocvrs_return.as_mut_ptr()) };\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&vector::Vector<manual::core::ptr::Ptr<BackendNode>>`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_VectorOfPtrOfBackendNode` found for reference `&vector::Vector<manual::core::ptr::Ptr<BackendNode>>` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":447954,"byte_end":447985,"line_start":11641,"line_end":11641,"column_start":184,"column_end":215,"is_primary":true,"text":[{"text":"\t\t\tunsafe { sys::cv_dnn_Layer_initWebnn_const_vectorLPtrLBackendWrapperGGR_const_vectorLPtrLBackendNodeGGR(self.as_raw_mut_Layer(), inputs.as_raw_VectorOfPtrOfBackendWrapper(), nodes.as_raw_VectorOfPtrOfBackendNode(), ocvrs_return.as_mut_ptr()) };","highlight_start":184,"highlight_end":215}],"label":"method not found in `&vector::Vector<manual::core::ptr::Ptr<BackendNode>>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_VectorOfPtrOfBackendNode` found for reference `&vector::Vector<manual::core::ptr::Ptr<BackendNode>>` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:11641:184\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m11641\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0mpper(), nodes.as_raw_VectorOfPtrOfBackendNode(), ocvrs_return.as_mut_ptr()) };\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&vector::Vector<manual::core::ptr::Ptr<BackendNode>>`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_VectorOfPtrOfBackendNode` found for reference `&vector::Vector<manual::core::ptr::Ptr<BackendNode>>` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs","byte_start":450896,"byte_end":450927,"line_start":11690,"line_end":11690,"column_start":264,"column_end":295,"is_primary":true,"text":[{"text":"\t\t\tunsafe { sys::cv_dnn_Layer_initCann_const_vectorLPtrLBackendWrapperGGR_const_vectorLPtrLBackendWrapperGGR_const_vectorLPtrLBackendNodeGGR(self.as_raw_mut_Layer(), inputs.as_raw_VectorOfPtrOfBackendWrapper(), outputs.as_raw_VectorOfPtrOfBackendWrapper(), nodes.as_raw_VectorOfPtrOfBackendNode(), ocvrs_return.as_mut_ptr()) };","highlight_start":264,"highlight_end":295}],"label":"method not found in `&vector::Vector<manual::core::ptr::Ptr<BackendNode>>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_VectorOfPtrOfBackendNode` found for reference `&vector::Vector<manual::core::ptr::Ptr<BackendNode>>` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/dnn.rs:11690:264\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m11690\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0mpper(), nodes.as_raw_VectorOfPtrOfBackendNode(), ocvrs_return.as_mut_ptr()) };\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&vector::Vector<manual::core::ptr::Ptr<BackendNode>>`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_VectorOfVideoCapture` found for reference `&vector::Vector<VideoCapture>` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/videoio.rs","byte_start":87174,"byte_end":87201,"line_start":1607,"line_end":1607,"column_start":99,"column_end":126,"is_primary":true,"text":[{"text":"\t\t\tunsafe { sys::cv_VideoCapture_waitAny_const_vectorLVideoCaptureGR_vectorLintGR_int64_t(streams.as_raw_VectorOfVideoCapture(), ready_index.as_raw_mut_VectorOfi32(), timeout_ns, ocvrs_return.as_mut_ptr()) };","highlight_start":99,"highlight_end":126}],"label":"method not found in `&vector::Vector<VideoCapture>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_VectorOfVideoCapture` found for reference `&vector::Vector<VideoCapture>` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/videoio.rs:1607:99\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1607\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0mctorLintGR_int64_t(streams.as_raw_VectorOfVideoCapture(), ready_index.as_raw_mut_VectorOfi32(), timeout_ns, ocvrs_return.as_mut_ptr()) };\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&vector::Vector<VideoCapture>`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"no method named `as_raw_VectorOfVideoCapture` found for reference `&vector::Vector<VideoCapture>` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/videoio.rs","byte_start":88534,"byte_end":88561,"line_start":1635,"line_end":1635,"column_start":91,"column_end":118,"is_primary":true,"text":[{"text":"\t\t\tunsafe { sys::cv_VideoCapture_waitAny_const_vectorLVideoCaptureGR_vectorLintGR(streams.as_raw_VectorOfVideoCapture(), ready_index.as_raw_mut_VectorOfi32(), ocvrs_return.as_mut_ptr()) };","highlight_start":91,"highlight_end":118}],"label":"method not found in `&vector::Vector<VideoCapture>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[1m\u001b[91merror[E0599]\u001b[0m\u001b[1m: no method named `as_raw_VectorOfVideoCapture` found for reference `&vector::Vector<VideoCapture>` in the current scope\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0m/Users/accusys/video_yolo_player/target/debug/build/opencv-4e105b5546afc119/out/opencv/videoio.rs:1635:91\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1635\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0mureGR_vectorLintGR(streams.as_raw_VectorOfVideoCapture(), ready_index.as_raw_mut_VectorOfi32(), ocvrs_return.as_mut_ptr()) };\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mmethod not found in `&vector::Vector<VideoCapture>`\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"aborting due to 84 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: aborting due to 84 previous errors\u001b[0m\n\n"}
|
|
{"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0277, E0308, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mSome errors have detailed explanations: E0277, E0308, E0599.\u001b[0m\n"}
|
|
{"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0277`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mFor more information about an error, try `rustc --explain E0277`.\u001b[0m\n"}
|