FieldsSigSlice

Struct FieldsSigSlice 

#[repr(transparent)]
pub struct FieldsSigSlice([(Symbol, ValueSignature)]);

Tuple Fields§

§0: [(Symbol, ValueSignature)]

Implementations§

§

impl FieldsSigSlice

const fn new(inner: &[(Symbol, ValueSignature)]) -> &Self

fn new_mut(inner: &mut [(Symbol, ValueSignature)]) -> &mut Self

pub(crate) fn iter(&self) -> impl Iterator<Item = (&Symbol, &ValueSignature)>

pub(crate) fn get(&self, key: &Symbol) -> Option<&ValueSignature>

fn get_mut(&mut self, key: &Symbol) -> Option<&mut ValueSignature>

pub fn matches(&self, other: &Self) -> bool

Checks whether ‘self’ contains all required fields for ‘other’.

‘self’ may contain additional fields that aren’t requested by ‘other’.

Trait Implementations§

§

impl Debug for FieldsSigSlice

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Display for FieldsSigSlice

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more