Searched refs:message_down_cast (Results 1 – 2 of 2) sorted by relevance
10 use crate::message::message_down_cast;200 FieldAccessorFunctions::SingularHasGetSet { has, .. } => has(message_down_cast(m)), in has_field_generic()202 a.get_field(message_down_cast(m)).to_option().is_some() in has_field_generic()205 a.get_field(message_down_cast(m)).is_non_zero() in has_field_generic()215 FieldAccessorFunctions::Repeated(ref a) => a.get_field(message_down_cast(m)).len(), in len_field_generic()216 FieldAccessorFunctions::Map(ref a) => a.get_field(message_down_cast(m)).len(), in len_field_generic()230 } => get.get_message(message_down_cast(m)), in get_message_generic()233 .get_field(message_down_cast(m)) in get_message_generic()251 } => get.get_enum(message_down_cast(m)), in get_enum_generic()257 match self.get_value_option(message_down_cast(m)) { in get_str_generic()[all …]
259 pub fn message_down_cast<'a, M: Message + 'a>(m: &'a dyn Message) -> &'a M { in message_down_cast() function