Struct gst::Caps [] [src]

pub struct Caps {
    // some fields omitted
}

Methods

impl Caps
[src]

unsafe fn new(caps: *mut GstCaps) -> Option<Caps>

fn new_empty() -> Caps

fn new_empty_simple(media_type: &str) -> Caps

fn new_any() -> Caps

fn is_writable(&self) -> bool

fn from_string(desc: &str) -> Option<Caps>

fn to_string(&self) -> &str

fn video_info(&self) -> Option<VideoInfo>

unsafe fn gst_caps(&self) -> *const GstCaps

unsafe fn gst_caps_mut(&mut self) -> *mut GstCaps

fn structure(&self, index: u32) -> Option<Structure>

Methods from Deref<Target=MiniObject>

fn lock<F: FnMut(&mut MiniObject)>(&mut self, flags: &[LockFlags], f: F) -> bool

fn make_writable(self) -> MiniObject

fn gst_miniobject(&self) -> *const GstMiniObject

fn gst_miniobject_mut(&mut self) -> *mut GstMiniObject

Trait Implementations

impl Clone for Caps
[src]

fn clone(&self) -> Caps

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Transfer<GstCaps> for Caps
[src]

unsafe fn transfer(self) -> *mut GstCaps

Consumes the current object and transfers ownership of the raw pointer Used to transfer ownership to ffi functions, should be used when an ffi function expects full transfer of an object to avoid the original object to be unreferenced in the process Read more

impl PartialEq for Caps
[src]

fn eq(&self, other: &Caps) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Eq for Caps
[src]

impl AsRef<MiniObject> for Caps
[src]

fn as_ref(&self) -> &MiniObject

Performs the conversion.

impl AsMut<MiniObject> for Caps
[src]

fn as_mut(&mut self) -> &mut MiniObject

Performs the conversion.

impl Deref for Caps
[src]

type Target = MiniObject

The resulting type after dereferencing

fn deref(&self) -> &MiniObject

The method called to dereference a value

impl DerefMut for Caps
[src]

fn deref_mut(&mut self) -> &mut MiniObject

The method called to mutably dereference a value