pub struct List<'a>(_);
Implementations
sourceimpl<'a> List<'a>
impl<'a> List<'a>
pub fn new(values: &[&dyn ToSendValue]) -> Self
pub fn from_owned(values: Vec<SendValue>) -> Self
pub fn into_owned(self) -> List<'static>
pub fn as_slice(&self) -> &[SendValue]
Trait Implementations
sourceimpl<'a> From<&'a [&'a (dyn ToSendValue + 'a)]> for List<'a>
impl<'a> From<&'a [&'a (dyn ToSendValue + 'a)]> for List<'a>
sourcefn from(values: &'a [&'a dyn ToSendValue]) -> Self
fn from(values: &'a [&'a dyn ToSendValue]) -> Self
Converts to this type from the input type.
sourceimpl<'a> FromValueOptional<'a> for List<'a>
impl<'a> FromValueOptional<'a> for List<'a>
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>
sourceimpl<'a> StaticType for List<'a>
impl<'a> StaticType for List<'a>
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl<'a> Send for List<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for List<'a>
impl<'a> !Sync for List<'a>
impl<'a> Unpin for List<'a>
impl<'a> UnwindSafe for List<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.