[−][src]Enum attribution::ParamVal
Represents a value for a parameter name within Parameters
struct.
The parameter value is the value that appears to the right of the equal
sign (e.g. "value"
is the ParamVal
in the following example
#[example(name = "value")]
)
Variants
Bool(bool)
Int(i64)
Float(f64)
Str(String)
Trait Implementations
impl Debug for ParamVal
[src]
impl<'_> From<&'_ str> for ParamVal
[src]
impl From<String> for ParamVal
[src]
impl From<bool> for ParamVal
[src]
impl From<f64> for ParamVal
[src]
impl From<i64> for ParamVal
[src]
impl Parse for ParamVal
[src]
fn parse(input: ParseStream) -> ParseResult<Self>
[src]
impl PartialEq<ParamVal> for ParamVal
[src]
impl StructuralPartialEq for ParamVal
[src]
impl TryFrom<Expr> for ParamVal
[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(value: Expr) -> Result<Self, Self::Error>
[src]
impl TryFrom<ExprArray> for ParamVal
[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(expr_array: ExprArray) -> Result<Self, Self::Error>
[src]
impl TryFrom<ExprLit> for ParamVal
[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(ExprLit { lit: lit, .. }: ExprLit) -> Result<Self, Self::Error>
[src]
impl TryFrom<ExprUnary> for ParamVal
[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(
ExprUnary { expr: expr, op: op, .. }: ExprUnary
) -> Result<Self, Self::Error>
[src]
ExprUnary { expr: expr, op: op, .. }: ExprUnary
) -> Result<Self, Self::Error>
impl TryFrom<Lit> for ParamVal
[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(lit: Lit) -> Result<Self, Self::Error>
[src]
impl TryFrom<ParamVal> for bool
[src]
type Error = TryIntoParamValError
The type returned in the event of a conversion error.
fn try_from(param_val: ParamVal) -> Result<Self, Self::Error>
[src]
impl TryFrom<ParamVal> for f64
[src]
type Error = TryIntoParamValError
The type returned in the event of a conversion error.
fn try_from(param_val: ParamVal) -> Result<Self, Self::Error>
[src]
impl TryFrom<ParamVal> for i64
[src]
type Error = TryIntoParamValError
The type returned in the event of a conversion error.
fn try_from(param_val: ParamVal) -> Result<Self, Self::Error>
[src]
impl TryFrom<ParamVal> for String
[src]
type Error = TryIntoParamValError
The type returned in the event of a conversion error.
fn try_from(param_val: ParamVal) -> Result<Self, Self::Error>
[src]
impl<T> TryFrom<ParamVal> for Vec<T> where
T: TryFrom<ParamVal, Error = TryIntoParamValError>,
[src]
T: TryFrom<ParamVal, Error = TryIntoParamValError>,
Auto Trait Implementations
impl RefUnwindSafe for ParamVal
impl Send for ParamVal
impl Sync for ParamVal
impl Unpin for ParamVal
impl UnwindSafe for ParamVal
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,