Skip to main content

IntoValues

Trait IntoValues 

Source
pub trait IntoValues {
    // Required method
    fn into_values(self) -> Array;
}
Expand description

Something usable as a PHP array of values: a Rust array, a Vec or a slice of IntoValues (a list), or an Array (keys kept).

Required Methods§

Source

fn into_values(self) -> Array

The array.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: IntoValue + Clone> IntoValues for &[T]

Source§

impl<T: IntoValue, const N: usize> IntoValues for [T; N]

Source§

impl<T: IntoValue> IntoValues for Vec<T>

Implementors§