pub struct VariableInterpolator;Expand description
Utility functions for variable interpolation
Implementations§
Source§impl VariableInterpolator
impl VariableInterpolator
Sourcepub fn interpolate_variables(
template: &str,
context: &PermissionContext,
) -> Result<String>
pub fn interpolate_variables( template: &str, context: &PermissionContext, ) -> Result<String>
Interpolate variables in a string template
Sourcepub fn interpolate_string_list(
templates: &[String],
context: &PermissionContext,
) -> Result<Vec<String>>
pub fn interpolate_string_list( templates: &[String], context: &PermissionContext, ) -> Result<Vec<String>>
Interpolate variables in a list of strings
Auto Trait Implementations§
impl Freeze for VariableInterpolator
impl RefUnwindSafe for VariableInterpolator
impl Send for VariableInterpolator
impl Sync for VariableInterpolator
impl Unpin for VariableInterpolator
impl UnsafeUnpin for VariableInterpolator
impl UnwindSafe for VariableInterpolator
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