[−][src]Struct iconwriter::NamedEntry
Implementations
impl NamedEntry
[src]
pub fn from<P: AsRef<Path>>(size: u32, path: &P) -> Self
[src]
Creates a NamedEntry
from a reference to a Path
.
Example
ⓘ
let entry = NamedEntry::from(32, &"icons/32/icon.png");
Trait Implementations
impl AsRef<u32> for NamedEntry
[src]
impl Clone for NamedEntry
[src]
pub fn clone(&self) -> NamedEntry
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NamedEntry
[src]
impl Eq for NamedEntry
[src]
impl Hash for NamedEntry
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Icon<NamedEntry> for PngSequence
[src]
pub fn new() -> Self
[src]
pub fn add_entry<F: FnMut(&SourceImage, u32) -> DynamicImage>(
&mut self,
filter: F,
source: &SourceImage,
entry: NamedEntry
) -> Result<(), Error<NamedEntry>>
[src]
&mut self,
filter: F,
source: &SourceImage,
entry: NamedEntry
) -> Result<(), Error<NamedEntry>>
pub fn write<W: Write>(&mut self, w: &mut W) -> Result<()>
[src]
pub fn save<P: AsRef<Path>>(&mut self, path: &P) -> Result<()>
[src]
pub fn add_entries<F: FnMut(&SourceImage, u32) -> DynamicImage, I: IntoIterator<Item = E>>(
&mut self,
filter: F,
source: &SourceImage,
entries: I
) -> Result<(), Error<E>>
[src]
&mut self,
filter: F,
source: &SourceImage,
entries: I
) -> Result<(), Error<E>>
impl PartialEq<NamedEntry> for NamedEntry
[src]
pub fn eq(&self, other: &NamedEntry) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for NamedEntry
[src]
Auto Trait Implementations
impl RefUnwindSafe for NamedEntry
[src]
impl Send for NamedEntry
[src]
impl Sync for NamedEntry
[src]
impl Unpin for NamedEntry
[src]
impl UnwindSafe for NamedEntry
[src]
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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> SetParameter for T
pub fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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>,