pub struct SupervisedImageFolderConfig { /* private fields */ }Implementations§
Source§impl SupervisedImageFolderConfig
impl SupervisedImageFolderConfig
pub fn new( output_height: usize, output_width: usize, ) -> Result<Self, ModelError>
pub fn output_height(&self) -> usize
pub fn output_width(&self) -> usize
pub fn with_target_mode(self, target_mode: ImageFolderTargetMode) -> Self
pub fn target_mode(&self) -> ImageFolderTargetMode
pub fn with_allowed_extensions( self, allowed_extensions: Vec<String>, ) -> Result<Self, ModelError>
pub fn allowed_extensions(&self) -> &[String]
Trait Implementations§
Source§impl Clone for SupervisedImageFolderConfig
impl Clone for SupervisedImageFolderConfig
Source§fn clone(&self) -> SupervisedImageFolderConfig
fn clone(&self) -> SupervisedImageFolderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SupervisedImageFolderConfig
impl Debug for SupervisedImageFolderConfig
impl StructuralPartialEq for SupervisedImageFolderConfig
Auto Trait Implementations§
impl Freeze for SupervisedImageFolderConfig
impl RefUnwindSafe for SupervisedImageFolderConfig
impl Send for SupervisedImageFolderConfig
impl Sync for SupervisedImageFolderConfig
impl Unpin for SupervisedImageFolderConfig
impl UnsafeUnpin for SupervisedImageFolderConfig
impl UnwindSafe for SupervisedImageFolderConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more