pub struct InterpolationOptions { /* private fields */ }Expand description
Controls one explicit interpolation operation.
Implementations§
Source§impl InterpolationOptions
impl InterpolationOptions
Sourcepub const fn new(missing_variable: MissingVariablePolicy) -> Self
pub const fn new(missing_variable: MissingVariablePolicy) -> Self
Creates options using the requested missing-variable policy.
Sourcepub fn with_max_nesting(self, max_nesting: usize) -> Self
pub fn with_max_nesting(self, max_nesting: usize) -> Self
Sets the maximum nested-expression depth; zero is promoted to one.
Sourcepub const fn missing_variable(self) -> MissingVariablePolicy
pub const fn missing_variable(self) -> MissingVariablePolicy
Returns the direct missing-variable policy.
Sourcepub const fn max_nesting(self) -> usize
pub const fn max_nesting(self) -> usize
Returns the maximum nested-expression depth.
Trait Implementations§
Source§impl Clone for InterpolationOptions
impl Clone for InterpolationOptions
Source§fn clone(&self) -> InterpolationOptions
fn clone(&self) -> InterpolationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InterpolationOptions
Source§impl Debug for InterpolationOptions
impl Debug for InterpolationOptions
Source§impl Default for InterpolationOptions
impl Default for InterpolationOptions
impl Eq for InterpolationOptions
Source§impl PartialEq for InterpolationOptions
impl PartialEq for InterpolationOptions
impl StructuralPartialEq for InterpolationOptions
Auto Trait Implementations§
impl Freeze for InterpolationOptions
impl RefUnwindSafe for InterpolationOptions
impl Send for InterpolationOptions
impl Sync for InterpolationOptions
impl Unpin for InterpolationOptions
impl UnsafeUnpin for InterpolationOptions
impl UnwindSafe for InterpolationOptions
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