Trait AssignFromString

Source
pub trait AssignFromString {
    // Required method
    fn assign_from_str(&mut self, s: &str);
}

Required Methods§

Source

fn assign_from_str(&mut self, s: &str)

&str 的内容写入到 [i8; N] 数组中 超出数组大小的部分将被截断,未被覆盖的部分保留原值或清零。

Implementations on Foreign Types§

Source§

impl<const N: usize> AssignFromString for &mut [i8; N]

Source§

fn assign_from_str(&mut self, s: &str)

Source§

impl<const N: usize> AssignFromString for [i8; N]

Source§

fn assign_from_str(&mut self, s: &str)

Implementors§