Struct rust_adorable_avatars::Avatar
source · pub struct Avatar { /* private fields */ }
Implementations
sourceimpl Avatar
impl Avatar
pub fn generate_from_id<S>(id: &str, size: S) -> Result<Self, Error>where
Size: From<S>,
pub fn generate_random<S>(size: S) -> Result<Self, Error>where
Size: From<S>,
pub fn build_avatar<S>(face: Face, color: Color, size: S) -> Result<Self, Error>where
Size: From<S>,
pub fn output(self, filename: &str) -> Result<(), Error>
Auto Trait Implementations
impl RefUnwindSafe for Avatar
impl Send for Avatar
impl Sync for Avatar
impl Unpin for Avatar
impl UnwindSafe for Avatar
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.