pub fn discriminator<'a, V: Source>(
object: Fields<'a, V>,
path: &str,
) -> Result<&'a V, ProbeError>Expand description
A union’s discriminator value, which is never absent.
§Errors
ProbeError::Missing when _d is not in the object.
pub fn discriminator<'a, V: Source>(
object: Fields<'a, V>,
path: &str,
) -> Result<&'a V, ProbeError>A union’s discriminator value, which is never absent.
ProbeError::Missing when _d is not in the object.