Struct image2::Input [−][src]
pub struct Input<'a, T: 'a + Type, C: 'a + Color> { pub images: Vec<&'a Image<T, C>>, pub pixel: Option<(Point, Pixel<C>)>, }
Expand description
Filter input
Fields
images: Vec<&'a Image<T, C>>
Expand description
Input images
pixel: Option<(Point, Pixel<C>)>
Expand description
Input pixel
Implementations
impl<'a, T: 'a + Type, C: 'a + Color> Input<'a, T, C>
[src]
impl<'a, T: 'a + Type, C: 'a + Color> Input<'a, T, C>
[src]pub fn with_pixel(self, point: Point, pixel: Pixel<C>) -> Self
[src]
pub fn with_pixel(self, point: Point, pixel: Pixel<C>) -> Self
[src]Add chained pixel data
pub fn without_pixel(self) -> Self
[src]
pub fn without_pixel(self) -> Self
[src]Remove chained pixel data
pub fn get_pixel(
&self,
pt: impl Into<Point>,
image_index: Option<usize>
) -> Pixel<C>
[src]
pub fn get_pixel(
&self,
pt: impl Into<Point>,
image_index: Option<usize>
) -> Pixel<C>
[src]Get input pixel at pt
- if pt
matches the stored pixel from a preview computation then
that pixel will be returned instead of the actual input pixel. If image_index
is not
None
then input from the image with that index will be used.
pub fn get_f(
&self,
pt: impl Into<Point>,
c: Channel,
image_index: Option<usize>
) -> f64
[src]
pub fn get_f(
&self,
pt: impl Into<Point>,
c: Channel,
image_index: Option<usize>
) -> f64
[src]Get input float value - if pt
matches the stored pixel from a preview computation then
that pixel will be returned instead of the actual input pixel. If image_index
is not
None
then input from the image with that index will be used.
Trait Implementations
Auto Trait Implementations
impl<'a, T, C> RefUnwindSafe for Input<'a, T, C> where
C: RefUnwindSafe,
T: RefUnwindSafe,
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, C> Send for Input<'a, T, C>
impl<'a, T, C> Sync for Input<'a, T, C>
impl<'a, T, C> Unpin for Input<'a, T, C>
impl<'a, T, C> UnwindSafe for Input<'a, T, C> where
C: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe,
C: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more