pub struct VipsRegion {
pub c: *mut VipsRegion,
}Expand description
VipsRegion struct wrapping libvips VipsRegion
§Example
use vips::*;
fn main() -> Result<()> {
let _instance = VipsInstance::new("app_test", true)?;
let img = VipsImage::from_file("examples/images/kodim01.png")?;
let region = VipsRegion::new(&img);
Ok(())
}Fields§
§c: *mut VipsRegionImplementations§
Source§impl VipsRegion
impl VipsRegion
Sourcepub fn new(image: &VipsImage<'_>) -> VipsRegion
pub fn new(image: &VipsImage<'_>) -> VipsRegion
Create a new VipsRegion for the given image
§Arguments
image- The VipsImage to create the region for
§Example
use vips::*;
fn main() -> Result<()> {
let _instance = VipsInstance::new("app_test", true)?;
let img = VipsImage::from_file("examples/images/kodim01.png")?;
let region = VipsRegion::new(&img);
Ok(())
}Trait Implementations§
Auto Trait Implementations§
impl Freeze for VipsRegion
impl RefUnwindSafe for VipsRegion
impl !Send for VipsRegion
impl !Sync for VipsRegion
impl Unpin for VipsRegion
impl UnwindSafe for VipsRegion
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