pub struct TemplateDialog<T> {
pub templates: TemplateStore<T>,
pub is_open: bool,
/* private fields */
}Expand description
Template management opened by a host’s study or drawing toolbar intents. The host supplies the current value, handles the returned loaded value and supplies durable storage if desired.
Fields§
§templates: TemplateStore<T>Host-readable catalog and storage connection.
is_open: boolWhether the dialog is visible.
Implementations§
Source§impl<T: Clone + Serialize + DeserializeOwned> TemplateDialog<T>
impl<T: Clone + Serialize + DeserializeOwned> TemplateDialog<T>
Sourcepub fn open(&mut self, current: T)
pub fn open(&mut self, current: T)
Open the name form for a snapshot of the current host settings.
Sourcepub fn open_catalog(&mut self)
pub fn open_catalog(&mut self)
Open the catalog without a current value to save. Loading still returns a value for the host.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TemplateDialog<T>
impl<T> !UnwindSafe for TemplateDialog<T>
impl<T> Freeze for TemplateDialog<T>where
T: Freeze,
impl<T> Send for TemplateDialog<T>where
T: Send,
impl<T> Sync for TemplateDialog<T>where
T: Sync,
impl<T> Unpin for TemplateDialog<T>where
T: Unpin,
impl<T> UnsafeUnpin for TemplateDialog<T>where
T: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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