fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>
        where
            E: de::Error,
        {
            let choice: u8 = v
                .try_into()
                .map_err(|_| de::Error::invalid_value(de::Unexpected::Unsigned(v), &self))?;
            choice.try_into().map_err(|_| {
                de::Error::invalid_value(de::Unexpected::Unsigned(choice as u64), &self)
            })
        }
// Only `visit_u64` is implemented because all the other `visit_u*` methods forward to this
// one by default, per the serde documentation.
Only `visit_u64` is implemented because all the other `visit_u*` methods forward to this
one by default, per the serde documentation.
Only ` visit_u64 ` is implemented because all the other ` visit_u * ` methods forward to this one by default per the serde documentation .
fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>
        where
            E: de::Error,
        {
            let choice: u8 = v
                .try_into()
                .map_err(|_| de::Error::invalid_value(de::Unexpected::Unsigned(v), &self))?;
            choice.try_into().map_err(|_| {
                de::Error::invalid_value(de::Unexpected::Unsigned(choice as u64), &self)
            })
        }
fn visit_u64 < E > ( self , v : u64 ) -> Result < Self :: Value , E > where E : de :: Error , { let choice : u8 = v . try_into ( ) . map_err ( | _ | de :: Error :: invalid_value ( de :: Unexpected :: Unsigned ( v ) , & self ) ) ? ; choice . try_into ( ) . map_err ( | _ | { de :: Error :: invalid_value ( de :: Unexpected :: Unsigned ( choice as u64 ) , & self ) } ) }
Only `visit_u64` is implemented because all the other `visit_u*` methods forward to this
one by default, per the serde documentation.
Only ` visit_u64 ` is implemented because all the other ` visit_u * ` methods forward to this one by default per the serde documentation .
self
v
u64