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

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

this trait should not be used directly, use FieldDescriptor instead

Required methods

fn name_generic(&self) -> &'static str

fn has_field_generic(&self, m: &dyn Message) -> bool

fn len_field_generic(&self, m: &dyn Message) -> usize

fn get_message_generic<'a>(&self, m: &'a dyn Message) -> &'a dyn Message

fn get_rep_message_item_generic<'a>(
    &self,
    m: &'a dyn Message,
    index: usize
) -> &'a dyn Message

fn get_enum_generic(&self, m: &dyn Message) -> &'static EnumValueDescriptor

fn get_rep_enum_item_generic(
    &self,
    m: &dyn Message,
    index: usize
) -> &'static EnumValueDescriptor

fn get_str_generic<'a>(&self, m: &'a dyn Message) -> &'a str

fn get_rep_str_generic<'a>(&self, m: &'a dyn Message) -> &'a [String]

fn get_bytes_generic<'a>(&self, m: &'a dyn Message) -> &'a [u8]

fn get_rep_bytes_generic<'a>(&self, m: &'a dyn Message) -> &'a [Vec<u8>]

fn get_u32_generic(&self, m: &dyn Message) -> u32

fn get_rep_u32_generic<'a>(&self, m: &'a dyn Message) -> &'a [u32]

fn get_u64_generic(&self, m: &dyn Message) -> u64

fn get_rep_u64_generic<'a>(&self, m: &'a dyn Message) -> &'a [u64]

fn get_i32_generic(&self, m: &dyn Message) -> i32

fn get_rep_i32_generic<'a>(&self, m: &'a dyn Message) -> &'a [i32]

fn get_i64_generic(&self, m: &dyn Message) -> i64

fn get_rep_i64_generic<'a>(&self, m: &'a dyn Message) -> &'a [i64]

fn get_bool_generic(&self, m: &dyn Message) -> bool

fn get_rep_bool_generic<'a>(&self, m: &'a dyn Message) -> &'a [bool]

fn get_f32_generic(&self, m: &dyn Message) -> f32

fn get_rep_f32_generic<'a>(&self, m: &'a dyn Message) -> &'a [f32]

fn get_f64_generic(&self, m: &dyn Message) -> f64

fn get_rep_f64_generic<'a>(&self, m: &'a dyn Message) -> &'a [f64]

fn get_reflect<'a>(&self, m: &'a dyn Message) -> ReflectFieldRef<'a>

Loading content...

Implementors

Loading content...