pub struct PixelBufPool(/* private fields */);Implementations§
Source§impl PixelBufPool
impl PixelBufPool
pub fn new( pool_attrs: Option<&Dictionary>, pixel_buf_attrs: Option<&Dictionary>, ) -> Result<R<Self>>
pub unsafe fn create_in( pool_attrs: Option<&Dictionary>, pixel_buf_attrs: Option<&Dictionary>, pool_out: *mut Option<R<PixelBufPool>>, allocator: Option<&Allocator>, ) -> Return
pub fn attrs(&self) -> Option<&Dictionary>
pub fn pixel_buf_attrs(&self) -> Option<&Dictionary>
pub unsafe fn create_pixel_buffer_in( &self, pixel_buf_out: *mut Option<R<PixelBuf>>, allocator: Option<&Allocator>, ) -> Return
pub fn pixel_buf(&self) -> Result<R<PixelBuf>>
pub unsafe fn create_pixel_buf_with_aux_attributes_in( &self, allocator: Option<&Allocator>, aux_attrs: Option<&Dictionary>, pixel_buf_out: *mut Option<R<PixelBuf>>, ) -> Return
pub fn pixel_buf_with_aux_attrs( &self, aux_attrs: Option<&Dictionary>, ) -> Result<R<PixelBuf>>
pub fn flush(&self, options: FlushFlags)
Methods from Deref<Target = Type>§
pub fn get_type_id(&self) -> TypeId
pub unsafe fn as_type_ptr(&self) -> *const c_void
pub fn as_type_ref(&self) -> &Type
pub fn is_tagged_ptr(&self) -> bool
pub fn try_as_number(&self) -> Option<&Number>
pub fn try_as_string(&self) -> Option<&String>
pub fn show(&self)
pub fn allocator(&self) -> Option<&Allocator>
pub fn retain_count(&self) -> isize
Sourcepub fn equal(&self, other: &Type) -> bool
pub fn equal(&self, other: &Type) -> bool
use cidre::cf;
let n1 = cf::Number::from_i8(4);
let n2 = cf::Number::from_i32(4);
let n3 = cf::Number::from_f64(3.0);
assert!(n1.equal(&n2));
assert_eq!(false, n1.equal(&n3));pub fn hash(&self) -> usize
pub fn desc(&self) -> R<String>
Trait Implementations§
Source§impl AsRef<Type> for PixelBufPool
impl AsRef<Type> for PixelBufPool
Source§impl Debug for PixelBufPool
impl Debug for PixelBufPool
Source§impl Deref for PixelBufPool
impl Deref for PixelBufPool
Source§impl DerefMut for PixelBufPool
impl DerefMut for PixelBufPool
Auto Trait Implementations§
impl !Send for PixelBufPool
impl !Sync for PixelBufPool
impl Freeze for PixelBufPool
impl RefUnwindSafe for PixelBufPool
impl Unpin for PixelBufPool
impl UnsafeUnpin for PixelBufPool
impl UnwindSafe for PixelBufPool
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