Trait protobuf::reflect::accessor::FieldAccessor [] [src]

pub trait FieldAccessor {
    fn name_generic(&self) -> &'static str;
    fn has_field_generic(&self, m: &Message) -> bool;
    fn len_field_generic(&self, m: &Message) -> usize;
    fn get_message_generic<'a>(&self, m: &'a Message) -> &'a Message;
    fn get_rep_message_item_generic<'a>(&self,
                                        m: &'a Message,
                                        index: usize)
                                        -> &'a Message; fn get_enum_generic(&self, m: &Message) -> &'static EnumValueDescriptor; fn get_rep_enum_item_generic(&self,
                                 m: &Message,
                                 index: usize)
                                 -> &'static EnumValueDescriptor; fn get_str_generic<'a>(&self, m: &'a Message) -> &'a str; fn get_rep_str_generic<'a>(&self, m: &'a Message) -> &'a [String]; fn get_bytes_generic<'a>(&self, m: &'a Message) -> &'a [u8]; fn get_rep_bytes_generic<'a>(&self, m: &'a Message) -> &'a [Vec<u8>]; fn get_u32_generic(&self, m: &Message) -> u32; fn get_rep_u32_generic<'a>(&self, m: &'a Message) -> &'a [u32]; fn get_u64_generic(&self, m: &Message) -> u64; fn get_rep_u64_generic<'a>(&self, m: &'a Message) -> &'a [u64]; fn get_i32_generic(&self, m: &Message) -> i32; fn get_rep_i32_generic<'a>(&self, m: &'a Message) -> &'a [i32]; fn get_i64_generic(&self, m: &Message) -> i64; fn get_rep_i64_generic<'a>(&self, m: &'a Message) -> &'a [i64]; fn get_bool_generic(&self, m: &Message) -> bool; fn get_rep_bool_generic<'a>(&self, m: &'a Message) -> &'a [bool]; fn get_f32_generic(&self, m: &Message) -> f32; fn get_rep_f32_generic<'a>(&self, m: &'a Message) -> &'a [f32]; fn get_f64_generic(&self, m: &Message) -> f64; fn get_rep_f64_generic<'a>(&self, m: &'a Message) -> &'a [f64]; }

this trait should not be used directly, use FieldDescriptor instead

Required Methods

Implementors