Skip to main content

Values

Trait Values 

Source
pub trait Values {
    // Required methods
    fn len(&self) -> usize;
    fn value(&self, index: usize) -> Option<Value<'_>>;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn name_matches(&self, actual: &str, expected: &str) -> bool { ... }
    fn names_are_case_insensitive(&self) -> bool { ... }
    fn strip_name_prefix<'name>(
        &self,
        actual: &'name str,
        prefix: &str,
    ) -> Option<&'name str> { ... }
}

Required Methods§

Source

fn len(&self) -> usize

Source

fn value(&self, index: usize) -> Option<Value<'_>>

Provided Methods§

Source

fn is_empty(&self) -> bool

Source

fn name_matches(&self, actual: &str, expected: &str) -> bool

Source

fn names_are_case_insensitive(&self) -> bool

Source

fn strip_name_prefix<'name>( &self, actual: &'name str, prefix: &str, ) -> Option<&'name str>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§