Skip to main content

Spectrum

Type Alias Spectrum 

Source
pub type Spectrum<T> = Buf<T, 1>;
Expand description

A one-dimensional array of values, see Buf.

Aliased Type§

pub struct Spectrum<T> { /* private fields */ }

Trait Implementations§

Source§

impl FromProp for Spectrum<str>

The values as they are, sharing the listing they are a slice of.

Source§

fn from_prop(values: &Spectrum<str>) -> Result<Self>

Parse this property’d type from a series of string values.
Source§

impl GetPropSpec<All> for Spectrum<str>

Source§

type Output = Vec<Named<Buf<str, 1>>>

Kind of output type returned.
Source§

fn collect(props: &mut PropReply) -> Result<Self::Output>

Build the output out of the properties, taking them one at a time. Read more
Source§

impl ToNames for Spectrum<str>

Source§

fn iter_names(&self) -> Option<impl Iterator<Item = &str>>

The names, in the order they were given, absent to target all elements, borrowed where they are: what a request copies into its own parameters, once, rather than first into a buffer of their own, see Spectrum::from_strs.
Source§

fn to_names(self) -> Option<Spectrum<str>>

The names as one buffer, see Self::iter_names.
Source§

impl ToNames for &Spectrum<str>

Source§

fn iter_names(&self) -> Option<impl Iterator<Item = &str>>

The names, in the order they were given, absent to target all elements, borrowed where they are: what a request copies into its own parameters, once, rather than first into a buffer of their own, see Spectrum::from_strs.
Source§

fn to_names(self) -> Option<Spectrum<str>>

The names as one buffer, see Self::iter_names.
Source§

impl ToNamesNotAll for Spectrum<str>

Source§

fn iter_names_not_all(&self) -> impl Iterator<Item = &str>

Utility function to ensure no None could be returned for the names.
Source§

fn to_names_not_all(self) -> Spectrum<str>

Utility function to ensure no None could be returned for the names.
Source§

impl ToNamesNotAll for &Spectrum<str>

Source§

fn iter_names_not_all(&self) -> impl Iterator<Item = &str>

Utility function to ensure no None could be returned for the names.
Source§

fn to_names_not_all(self) -> Spectrum<str>

Utility function to ensure no None could be returned for the names.
Source§

impl<T> ToNamesSpec<T> for Spectrum<str>

Source§

type Output = Vec<Result<T, Error>>

The final type of the output.
Source§

fn collect(entries: Vec<NamedResult<T>>) -> Result<Self::Output>

Build the output out of the entries the device answered with, one per name. Read more
Source§

impl<T> ToNamesSpec<T> for &Spectrum<str>

Source§

type Output = Vec<Result<T, Error>>

The final type of the output.
Source§

fn collect(entries: Vec<NamedResult<T>>) -> Result<Self::Output>

Build the output out of the entries the device answered with, one per name. Read more
Source§

impl<'a, T: TangoElement + ?Sized> TryFrom<&'a Value> for &'a Spectrum<T>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(data: &'a Value) -> Result<Self, Error>

Performs the conversion.
Source§

impl<T: TangoElement + ?Sized> TryFrom<Value> for Spectrum<T>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(data: Value) -> Result<Self, Error>

Performs the conversion.