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]
impl<'a> ToGlibContainerFromSlice<'a, *mut i8> for i8
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut u16> for u16
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut i16> for i16
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut u32> for u32
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut i32> for i32
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut u64> for u64
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut i64> for i64
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut f32> for f32
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut f64> for 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]
t: &'a [&'a str]
) -> (*mut *mut c_char, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [&'a str]
) -> (*mut *mut c_char, Self::Storage)
[src]
t: &'a [&'a str]
) -> (*mut *mut c_char, Self::Storage)
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]
t: &'a [&'a str]
) -> (*mut *const c_char, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [&'a str]
) -> (*mut *const c_char, Self::Storage)
[src]
t: &'a [&'a str]
) -> (*mut *const c_char, Self::Storage)
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]
t: &'a [String]
) -> (*mut *mut c_char, Self::Storage)
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]
t: &'a [String]
) -> (*mut *const c_char, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [String]
) -> (*mut *const c_char, Self::Storage)
[src]
t: &'a [String]
) -> (*mut *const c_char, Self::Storage)
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]
t: &'a [&'a Path]
) -> (*mut *mut c_char, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [&'a Path]
) -> (*mut *mut c_char, Self::Storage)
[src]
t: &'a [&'a Path]
) -> (*mut *mut c_char, Self::Storage)
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]
t: &'a [&'a Path]
) -> (*mut *const c_char, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [&'a Path]
) -> (*mut *const c_char, Self::Storage)
[src]
t: &'a [&'a Path]
) -> (*mut *const c_char, Self::Storage)
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]
t: &'a [PathBuf]
) -> (*mut *mut c_char, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [PathBuf]
) -> (*mut *mut c_char, Self::Storage)
[src]
t: &'a [PathBuf]
) -> (*mut *mut c_char, Self::Storage)
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]
t: &'a [PathBuf]
) -> (*mut *const c_char, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [PathBuf]
) -> (*mut *const c_char, Self::Storage)
[src]
t: &'a [PathBuf]
) -> (*mut *const c_char, Self::Storage)
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]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
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>>);impl<'a> ToGlibContainerFromSlice<'a, *mut GValue> for &'a Value type Storage = &'a [&'a Value];
impl<'a> ToGlibContainerFromSlice<'a, *const GValue> for &'a Value type Storage = &'a [&'a Value];