pub struct InterpolationInput<'a> { /* private fields */ }Expand description
A source-aware scalar supplied to the interpolation kernel.
Implementations§
Source§impl<'a> InterpolationInput<'a>
impl<'a> InterpolationInput<'a>
Sourcepub const fn new(value: &'a str, span: SourceSpan) -> Self
pub const fn new(value: &'a str, span: SourceSpan) -> Self
Creates a non-sensitive input.
Sourcepub const fn span(self) -> SourceSpan
pub const fn span(self) -> SourceSpan
Returns the scalar’s source span.
Sourcepub const fn is_sensitive(self) -> bool
pub const fn is_sensitive(self) -> bool
Reports whether the authored scalar is sensitive.
Trait Implementations§
Source§impl<'a> Clone for InterpolationInput<'a>
impl<'a> Clone for InterpolationInput<'a>
Source§fn clone(&self) -> InterpolationInput<'a>
fn clone(&self) -> InterpolationInput<'a>
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<'a> Copy for InterpolationInput<'a>
Source§impl<'a> Debug for InterpolationInput<'a>
impl<'a> Debug for InterpolationInput<'a>
impl<'a> Eq for InterpolationInput<'a>
Source§impl<'a> PartialEq for InterpolationInput<'a>
impl<'a> PartialEq for InterpolationInput<'a>
impl<'a> StructuralPartialEq for InterpolationInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for InterpolationInput<'a>
impl<'a> RefUnwindSafe for InterpolationInput<'a>
impl<'a> Send for InterpolationInput<'a>
impl<'a> Sync for InterpolationInput<'a>
impl<'a> Unpin for InterpolationInput<'a>
impl<'a> UnsafeUnpin for InterpolationInput<'a>
impl<'a> UnwindSafe for InterpolationInput<'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