pub struct CompositeFrame {
pub ptr: NonNull<rs2_frame>,
}
Expand description
Holds the raw data pointer from an RS2 Composite frame type.
Fields§
§ptr: NonNull<rs2_frame>
The raw data pointer from the original rs2 frame
Implementations§
Source§impl CompositeFrame
impl CompositeFrame
Sourcepub fn count(&self) -> usize
pub fn count(&self) -> usize
Gets the number of individual frames included in the composite frame.
Sourcepub fn frames_of_type<F>(&self) -> Vec<F>
pub fn frames_of_type<F>(&self) -> Vec<F>
Retrieves all frames in the Composite frame collection of a given type.
§Generic Arguments
F
must implement FrameCategory
. Some examples of good
types to use for this are:
Trait Implementations§
Source§impl Debug for CompositeFrame
impl Debug for CompositeFrame
Source§impl Drop for CompositeFrame
impl Drop for CompositeFrame
Auto Trait Implementations§
impl Freeze for CompositeFrame
impl RefUnwindSafe for CompositeFrame
impl !Send for CompositeFrame
impl !Sync for CompositeFrame
impl Unpin for CompositeFrame
impl UnwindSafe for CompositeFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more