pub struct TypeBuilder<'a> { /* private fields */ }Expand description
Builder for the type operator.
This builder provides a fluent interface for creating type operators which return the type of a value as a string.
Implementations§
Source§impl<'a> TypeBuilder<'a>
impl<'a> TypeBuilder<'a>
Sourcepub fn var(&self, path: &str) -> TypeOperationBuilder<'a>
pub fn var(&self, path: &str) -> TypeOperationBuilder<'a>
Sets the argument for the type operator to a variable reference.
Sourcepub fn int(&self, value: i64) -> TypeOperationBuilder<'a>
pub fn int(&self, value: i64) -> TypeOperationBuilder<'a>
Sets the argument for the type operator to a literal integer.
Sourcepub fn float(&self, value: f64) -> TypeOperationBuilder<'a>
pub fn float(&self, value: f64) -> TypeOperationBuilder<'a>
Sets the argument for the type operator to a literal float.
Sourcepub fn string(&self, value: &str) -> TypeOperationBuilder<'a>
pub fn string(&self, value: &str) -> TypeOperationBuilder<'a>
Sets the argument for the type operator to a literal string.
Sourcepub fn bool(&self, value: bool) -> TypeOperationBuilder<'a>
pub fn bool(&self, value: bool) -> TypeOperationBuilder<'a>
Sets the argument for the type operator to a literal boolean.
Sourcepub fn null(&self) -> TypeOperationBuilder<'a>
pub fn null(&self) -> TypeOperationBuilder<'a>
Sets the argument for the type operator to a literal null.
Auto Trait Implementations§
impl<'a> Freeze for TypeBuilder<'a>
impl<'a> !RefUnwindSafe for TypeBuilder<'a>
impl<'a> !Send for TypeBuilder<'a>
impl<'a> !Sync for TypeBuilder<'a>
impl<'a> Unpin for TypeBuilder<'a>
impl<'a> !UnwindSafe for TypeBuilder<'a>
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