fmt
This commit is contained in:
parent
055810e8a9
commit
f71b6b8c92
|
|
@ -7,16 +7,16 @@ use std::fmt::Debug;
|
||||||
use std::{cmp, fmt};
|
use std::{cmp, fmt};
|
||||||
|
|
||||||
fn convert_from_into<C, P>(cloud: Vec<P>)
|
fn convert_from_into<C, P>(cloud: Vec<P>)
|
||||||
where
|
where
|
||||||
C: FallibleIterator<Item = P>
|
C: FallibleIterator<Item = P>
|
||||||
+ TryFrom<PointCloud2Msg>
|
+ TryFrom<PointCloud2Msg>
|
||||||
+ TryFrom<Vec<P>>
|
+ TryFrom<Vec<P>>
|
||||||
+ TryInto<PointCloud2Msg>,
|
+ TryInto<PointCloud2Msg>,
|
||||||
<C as FallibleIterator>::Error: Debug,
|
<C as FallibleIterator>::Error: Debug,
|
||||||
<C as TryFrom<PointCloud2Msg>>::Error: Debug,
|
<C as TryFrom<PointCloud2Msg>>::Error: Debug,
|
||||||
<C as TryInto<PointCloud2Msg>>::Error: Debug,
|
<C as TryInto<PointCloud2Msg>>::Error: Debug,
|
||||||
<C as TryFrom<Vec<P>>>::Error: Debug,
|
<C as TryFrom<Vec<P>>>::Error: Debug,
|
||||||
P: Clone + fmt::Debug + cmp::PartialEq,
|
P: Clone + fmt::Debug + cmp::PartialEq,
|
||||||
{
|
{
|
||||||
let copy = cloud.clone();
|
let copy = cloud.clone();
|
||||||
let msg: Result<PointCloud2Msg, _> = C::try_from(cloud).unwrap().try_into();
|
let msg: Result<PointCloud2Msg, _> = C::try_from(cloud).unwrap().try_into();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue