Trait flatk::StorageInto[][src]

pub trait StorageInto<Target> {
    type Output;
    fn storage_into(self) -> Self::Output;
}
Expand description

Convert the storage type into another using the Into trait.

Associated Types

Required methods

Implementations on Foreign Types

Convert a slice into an owned Vec type.

Convert a mutable slice into an owned Vec type.

Convert a mutable slice into an immutable borrow.

Convert a Vec of one type into a Vec of another type given that the element types can be converted.

Example
use flatk::*;
let sentences = vec!["First", "sentence", "about", "nothing", ".", "Second", "sentence", "."];
let chunked = Chunked::from_sizes(vec![5,3], sentences);
let owned_sentences: Chunked<Vec<String>> = chunked.storage_into();
assert_eq!(Some(&["Second".to_string(), "sentence".to_string(), ".".to_string()][..]), owned_sentences.view().get(1));

Implementors

Pass through the conversion for structure type Select.

Pass through the conversion for structure type Subset.

Pass through the conversion for structure type UniChunked.

Pass through the conversion for structure type Chunked.

Pass through the conversion for structure type Subset.