Struct libvips_rs::VipsSource
source · pub struct VipsSource { /* private fields */ }
Implementations§
source§impl VipsSource
impl VipsSource
pub fn new_from_descriptor(descriptor: i32) -> Result<Self>
pub fn new_from_file(filename: &str) -> Result<Self>
pub fn new_from_memory(buffer: &[u8]) -> Result<Self>
pub fn new_from_options(option_str: &str) -> Result<Self>
pub fn minimise(&mut self)
pub fn unminimise(&mut self) -> Result<()>
pub fn decode(&mut self) -> Result<()>
pub fn read(&mut self, length: u64) -> Result<Vec<u8>>
pub fn is_mappable(&self) -> bool
pub fn seek(&mut self, offset: i64, whence: i32) -> Result<i64>
pub fn rewind(&mut self) -> Result<()>
pub fn length(&self) -> Result<i64>
Trait Implementations§
source§impl Clone for VipsSource
impl Clone for VipsSource
source§fn clone(&self) -> VipsSource
fn clone(&self) -> VipsSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VipsSource
impl Debug for VipsSource
Auto Trait Implementations§
impl RefUnwindSafe for VipsSource
impl !Send for VipsSource
impl !Sync for VipsSource
impl Unpin for VipsSource
impl UnwindSafe for VipsSource
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