pub struct UiParameters<'a, Preview> { /* private fields */ }
Expand description
Extra arguments for the FileChooser::do_ui()
function.
Implementations§
Source§impl<'a> UiParameters<'a, NoPreview>
impl<'a> UiParameters<'a, NoPreview>
Sourcepub fn new(atlas: &'a CustomAtlas) -> Self
pub fn new(atlas: &'a CustomAtlas) -> Self
Builds a UiParameters
without preview.
Sourcepub fn with_preview<A, P: PreviewBuilder<A>>(
self,
preview: P,
) -> UiParameters<'a, P>
pub fn with_preview<A, P: PreviewBuilder<A>>( self, preview: P, ) -> UiParameters<'a, P>
Adds a preview object to this UiParameters
.
Trait Implementations§
Source§impl<'a> From<&'a CustomAtlas> for UiParameters<'a, NoPreview>
Converts a &CustomAtlas
into a UiParameters, with all other values to their default.
impl<'a> From<&'a CustomAtlas> for UiParameters<'a, NoPreview>
Converts a &CustomAtlas
into a UiParameters, with all other values to their default.
Source§fn from(value: &'a CustomAtlas) -> Self
fn from(value: &'a CustomAtlas) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, Preview> Freeze for UiParameters<'a, Preview>where
Preview: Freeze,
impl<'a, Preview> RefUnwindSafe for UiParameters<'a, Preview>where
Preview: RefUnwindSafe,
impl<'a, Preview> Send for UiParameters<'a, Preview>where
Preview: Send,
impl<'a, Preview> Sync for UiParameters<'a, Preview>where
Preview: Sync,
impl<'a, Preview> Unpin for UiParameters<'a, Preview>where
Preview: Unpin,
impl<'a, Preview> UnwindSafe for UiParameters<'a, Preview>where
Preview: UnwindSafe,
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> 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