# Trait glib::translate::ToGlibContainerFromSlice [−] [src]

    pub trait ToGlibContainerFromSlice<'a, P> where
        Self: Sized, {
        type Storage;
        fn to_glib_none_from_slice(t: &'a [Self]) -> (P, Self::Storage);
        fn to_glib_container_from_slice(t: &'a [Self]) -> (P, Self::Storage);
        fn to_glib_full_from_slice(t: &[Self]) -> P;
    }

## Associated Types

### `type Storage`

## Required Methods

### `fn to_glib_none_from_slice(t: &'a [Self]) -> (P, Self::Storage)`

### `fn to_glib_container_from_slice(t: &'a [Self]) -> (P, Self::Storage)`

### `fn to_glib_full_from_slice(t: &[Self]) -> P`

## Implementations on Foreign Types

### `impl<'a> ToGlibContainerFromSlice<'a, *mut u8> for u8`
[src]

#### `type Storage = &'a [u8]`

#### `fn to_glib_none_from_slice(t: &'a [u8]) -> (*mut u8, &'a [u8])`
[src]

#### `fn to_glib_container_from_slice(t: &'a [u8]) -> (*mut u8, &'a [u8])`
[src]

#### `fn to_glib_full_from_slice(t: &[u8]) -> *mut u8`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut i8> for i8`
[src]

#### `type Storage = &'a [i8]`

#### `fn to_glib_none_from_slice(t: &'a [i8]) -> (*mut i8, &'a [i8])`
[src]

#### `fn to_glib_container_from_slice(t: &'a [i8]) -> (*mut i8, &'a [i8])`
[src]

#### `fn to_glib_full_from_slice(t: &[i8]) -> *mut i8`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut u16> for u16`
[src]

#### `type Storage = &'a [u16]`

#### `fn to_glib_none_from_slice(t: &'a [u16]) -> (*mut u16, &'a [u16])`
[src]

#### `fn to_glib_container_from_slice(t: &'a [u16]) -> (*mut u16, &'a [u16])`
[src]

#### `fn to_glib_full_from_slice(t: &[u16]) -> *mut u16`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut i16> for i16`
[src]

#### `type Storage = &'a [i16]`

#### `fn to_glib_none_from_slice(t: &'a [i16]) -> (*mut i16, &'a [i16])`
[src]

#### `fn to_glib_container_from_slice(t: &'a [i16]) -> (*mut i16, &'a [i16])`
[src]

#### `fn to_glib_full_from_slice(t: &[i16]) -> *mut i16`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut u32> for u32`
[src]

#### `type Storage = &'a [u32]`

#### `fn to_glib_none_from_slice(t: &'a [u32]) -> (*mut u32, &'a [u32])`
[src]

#### `fn to_glib_container_from_slice(t: &'a [u32]) -> (*mut u32, &'a [u32])`
[src]

#### `fn to_glib_full_from_slice(t: &[u32]) -> *mut u32`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut i32> for i32`
[src]

#### `type Storage = &'a [i32]`

#### `fn to_glib_none_from_slice(t: &'a [i32]) -> (*mut i32, &'a [i32])`
[src]

#### `fn to_glib_container_from_slice(t: &'a [i32]) -> (*mut i32, &'a [i32])`
[src]

#### `fn to_glib_full_from_slice(t: &[i32]) -> *mut i32`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut u64> for u64`
[src]

#### `type Storage = &'a [u64]`

#### `fn to_glib_none_from_slice(t: &'a [u64]) -> (*mut u64, &'a [u64])`
[src]

#### `fn to_glib_container_from_slice(t: &'a [u64]) -> (*mut u64, &'a [u64])`
[src]

#### `fn to_glib_full_from_slice(t: &[u64]) -> *mut u64`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut i64> for i64`
[src]

#### `type Storage = &'a [i64]`

#### `fn to_glib_none_from_slice(t: &'a [i64]) -> (*mut i64, &'a [i64])`
[src]

#### `fn to_glib_container_from_slice(t: &'a [i64]) -> (*mut i64, &'a [i64])`
[src]

#### `fn to_glib_full_from_slice(t: &[i64]) -> *mut i64`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut f32> for f32`
[src]

#### `type Storage = &'a [f32]`

#### `fn to_glib_none_from_slice(t: &'a [f32]) -> (*mut f32, &'a [f32])`
[src]

#### `fn to_glib_container_from_slice(t: &'a [f32]) -> (*mut f32, &'a [f32])`
[src]

#### `fn to_glib_full_from_slice(t: &[f32]) -> *mut f32`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut f64> for f64`
[src]

#### `type Storage = &'a [f64]`

#### `fn to_glib_none_from_slice(t: &'a [f64]) -> (*mut f64, &'a [f64])`
[src]

#### `fn to_glib_container_from_slice(t: &'a [f64]) -> (*mut f64, &'a [f64])`
[src]

#### `fn to_glib_full_from_slice(t: &[f64]) -> *mut f64`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut *mut c_char> for &'a str`
[src]

#### `type Storage = (Vec<Stash<'a, *mut c_char, &'a str>>, Option<Vec<*mut c_char>>)`

#### `fn to_glib_none_from_slice(
t: &'a [&'a str]
) -> (*mut *mut c_char, Self::Storage)`
[src]

#### `fn to_glib_container_from_slice(
t: &'a [&'a str]
) -> (*mut *mut c_char, Self::Storage)`
[src]

#### `fn to_glib_full_from_slice(t: &[&'a str]) -> *mut *mut c_char`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut *const c_char> for &'a str`
[src]

#### `type Storage = (Vec<Stash<'a, *const c_char, &'a str>>, Option<Vec<*const c_char>>)`

#### `fn to_glib_none_from_slice(
t: &'a [&'a str]
) -> (*mut *const c_char, Self::Storage)`
[src]

#### `fn to_glib_container_from_slice(
t: &'a [&'a str]
) -> (*mut *const c_char, Self::Storage)`
[src]

#### `fn to_glib_full_from_slice(t: &[&'a str]) -> *mut *const c_char`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut *mut c_char> for String`
[src]

#### `type Storage = (Vec<Stash<'a, *mut c_char, String>>, Option<Vec<*mut c_char>>)`

#### `fn to_glib_none_from_slice(t: &'a [String]) -> (*mut *mut c_char, Self::Storage)`
[src]

#### `fn to_glib_container_from_slice(
t: &'a [String]
) -> (*mut *mut c_char, Self::Storage)`
[src]

#### `fn to_glib_full_from_slice(t: &[String]) -> *mut *mut c_char`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut *const c_char> for String`
[src]

#### `type Storage = (Vec<Stash<'a, *const c_char, String>>, Option<Vec<*const c_char>>)`

#### `fn to_glib_none_from_slice(
t: &'a [String]
) -> (*mut *const c_char, Self::Storage)`
[src]

#### `fn to_glib_container_from_slice(
t: &'a [String]
) -> (*mut *const c_char, Self::Storage)`
[src]

#### `fn to_glib_full_from_slice(t: &[String]) -> *mut *const c_char`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut *mut c_char> for &'a Path`
[src]

#### `type Storage = (Vec<Stash<'a, *mut c_char, &'a Path>>, Option<Vec<*mut c_char>>)`

#### `fn to_glib_none_from_slice(
t: &'a [&'a Path]
) -> (*mut *mut c_char, Self::Storage)`
[src]

#### `fn to_glib_container_from_slice(
t: &'a [&'a Path]
) -> (*mut *mut c_char, Self::Storage)`
[src]

#### `fn to_glib_full_from_slice(t: &[&'a Path]) -> *mut *mut c_char`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut *const c_char> for &'a Path`
[src]

#### `type Storage = (Vec<Stash<'a, *const c_char, &'a Path>>, Option<Vec<*const c_char>>)`

#### `fn to_glib_none_from_slice(
t: &'a [&'a Path]
) -> (*mut *const c_char, Self::Storage)`
[src]

#### `fn to_glib_container_from_slice(
t: &'a [&'a Path]
) -> (*mut *const c_char, Self::Storage)`
[src]

#### `fn to_glib_full_from_slice(t: &[&'a Path]) -> *mut *const c_char`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut *mut c_char> for PathBuf`
[src]

#### `type Storage = (Vec<Stash<'a, *mut c_char, PathBuf>>, Option<Vec<*mut c_char>>)`

#### `fn to_glib_none_from_slice(
t: &'a [PathBuf]
) -> (*mut *mut c_char, Self::Storage)`
[src]

#### `fn to_glib_container_from_slice(
t: &'a [PathBuf]
) -> (*mut *mut c_char, Self::Storage)`
[src]

#### `fn to_glib_full_from_slice(t: &[PathBuf]) -> *mut *mut c_char`
[src]

### `impl<'a> ToGlibContainerFromSlice<'a, *mut *const c_char> for PathBuf`
[src]

#### `type Storage = (Vec<Stash<'a, *const c_char, PathBuf>>, Option<Vec<*const c_char>>)`

#### `fn to_glib_none_from_slice(
t: &'a [PathBuf]
) -> (*mut *const c_char, Self::Storage)`
[src]

#### `fn to_glib_container_from_slice(
t: &'a [PathBuf]
) -> (*mut *const c_char, Self::Storage)`
[src]

#### `fn to_glib_full_from_slice(t: &[PathBuf]) -> *mut *const c_char`
[src]

### `impl<'a, T> ToGlibContainerFromSlice<'a, *mut GSList> for &'a T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,`
[src]

#### `type Storage = (Option<SList>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, &'a T>>)`

#### `fn to_glib_none_from_slice(t: &'a [&'a T]) -> (*mut GSList, Self::Storage)`
[src]

#### `fn to_glib_container_from_slice(t: &'a [&'a T]) -> (*mut GSList, Self::Storage)`
[src]

#### `fn to_glib_full_from_slice(t: &[&'a T]) -> *mut GSList`
[src]

## Implementors

- `impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
  T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>);`
- [src]
  `impl<'a> ToGlibContainerFromSlice<'a, *mut GValue> for &'a Value type Storage = &'a [&'a Value];`
- [src]
  `impl<'a> ToGlibContainerFromSlice<'a, *const GValue> for &'a Value type Storage = &'a [&'a Value];`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
↑
  Move up in search results
↓
  Move down in search results
↹
  Switch tab
⏎
  Go to active search result
+ / -
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)