Struct usvg::ConvolveMatrix [−][src]
pub struct ConvolveMatrix { /* fields omitted */ }
A convolve matrix representation.
Used primarily by FeConvolveMatrix
.
Implementations
impl ConvolveMatrix
[src]
pub fn new(
target_x: u32,
target_y: u32,
columns: u32,
rows: u32,
data: Vec<f64>
) -> Option<Self>
[src]
target_x: u32,
target_y: u32,
columns: u32,
rows: u32,
data: Vec<f64>
) -> Option<Self>
Creates a new ConvolveMatrix
.
Returns None
when:
columns
*rows
!=data.len()
target_x
>=columns
target_y
>=rows
pub fn target_x(&self) -> u32
[src]
Returns a matrix’s X target.
targetX
in the SVG.
pub fn target_y(&self) -> u32
[src]
Returns a matrix’s Y target.
targetY
in the SVG.
pub fn columns(&self) -> u32
[src]
Returns a number of columns in the matrix.
Part of the order
attribute in the SVG.
pub fn rows(&self) -> u32
[src]
Returns a number of rows in the matrix.
Part of the order
attribute in the SVG.
pub fn get(&self, x: u32, y: u32) -> f64
[src]
pub fn data(&self) -> &[f64]ⓘ
[src]
Returns a reference to an internal data.
Trait Implementations
impl Clone for ConvolveMatrix
[src]
fn clone(&self) -> ConvolveMatrix
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ConvolveMatrix
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConvolveMatrix
impl Send for ConvolveMatrix
impl Sync for ConvolveMatrix
impl Unpin for ConvolveMatrix
impl UnwindSafe for ConvolveMatrix
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,