Struct jj_cli::template_builder::Expression
source · pub struct Expression<P> { /* private fields */ }Expand description
Opaque struct that represents a template value.
Implementations§
source§impl<'a, P: IntoTemplateProperty<'a>> Expression<P>
impl<'a, P: IntoTemplateProperty<'a>> Expression<P>
pub fn try_into_boolean( self ) -> Option<Box<dyn TemplateProperty<Output = bool> + 'a>>
pub fn try_into_integer( self ) -> Option<Box<dyn TemplateProperty<Output = i64> + 'a>>
pub fn try_into_plain_text( self ) -> Option<Box<dyn TemplateProperty<Output = String> + 'a>>
pub fn try_into_template(self) -> Option<Box<dyn Template + 'a>>
Auto Trait Implementations§
impl<P> Freeze for Expression<P>where
P: Freeze,
impl<P> RefUnwindSafe for Expression<P>where
P: RefUnwindSafe,
impl<P> Send for Expression<P>where
P: Send,
impl<P> Sync for Expression<P>where
P: Sync,
impl<P> Unpin for Expression<P>where
P: Unpin,
impl<P> UnwindSafe for Expression<P>where
P: 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