Enum InterpolationArg
pub(crate) enum InterpolationArg {
Spelled(String),
Typed(Interpolation),
}Expand description
An interpolation scheme as a Python caller names it: the code as a string,
or an Interpolation value in hand.
Not crate::vocab::Named, because the two forms are not interchangeable
here: a string may need tension or end_slopes beside it, and a value
carries its own and must not take them. The extractor keeps which arrived.
Variants§
Spelled(String)
Typed(Interpolation)
Implementations§
§impl InterpolationArg
impl InterpolationArg
Trait Implementations§
§impl<'py> FromPyObject<'py> for InterpolationArg
impl<'py> FromPyObject<'py> for InterpolationArg
§fn extract_bound(ob: &Bound<'py, PyAny>) -> PyResult<Self>
fn extract_bound(ob: &Bound<'py, PyAny>) -> PyResult<Self>
Auto Trait Implementations§
impl Freeze for InterpolationArg
impl RefUnwindSafe for InterpolationArg
impl Send for InterpolationArg
impl Sync for InterpolationArg
impl Unpin for InterpolationArg
impl UnsafeUnpin for InterpolationArg
impl UnwindSafe for InterpolationArg
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