Trait dokany::AsWide

source ·
pub trait AsWide {
    type Iter: Iterator<Item = u16>;

    // Required method
    fn as_wide(&self) -> Self::Iter;
}
Expand description

Implemented for types that can be converted into wide char arrays.

Required Associated Types§

source

type Iter: Iterator<Item = u16>

Required Methods§

source

fn as_wide(&self) -> Self::Iter

Get an iterator over wide chars.

Depending on where this is passed, it is a logic error to have a NUL wide char.

Implementations on Foreign Types§

source§

impl<'a> AsWide for &'a PathBuf

§

type Iter = EncodeWide<'a>

source§

fn as_wide(&self) -> Self::Iter

source§

impl<'a> AsWide for &'a [u16]

§

type Iter = Copied<Iter<'a, u16>>

source§

fn as_wide(&self) -> Self::Iter

source§

impl<'a> AsWide for &'a str

§

type Iter = EncodeUtf16<'a>

source§

fn as_wide(&self) -> Self::Iter

source§

impl<'a> AsWide for &'a Path

§

type Iter = EncodeWide<'a>

source§

fn as_wide(&self) -> Self::Iter

source§

impl<'a> AsWide for &'a OsStr

§

type Iter = EncodeWide<'a>

source§

fn as_wide(&self) -> Self::Iter

source§

impl<'a> AsWide for &'a Vec<u16>

§

type Iter = Copied<Iter<'a, u16>>

source§

fn as_wide(&self) -> Self::Iter

source§

impl<'a> AsWide for &'a String

§

type Iter = EncodeUtf16<'a>

source§

fn as_wide(&self) -> Self::Iter

source§

impl<'a> AsWide for &'a OsString

§

type Iter = EncodeWide<'a>

source§

fn as_wide(&self) -> Self::Iter

Implementors§