Struct rust_demo::com::lssoft::common::People[][src]

pub struct People<'a> {
    pub name: &'a mut String,
}
Expand description

-结构体 People

  • 属性 name,类型 &mut String

Fields

name: &'a mut String

Implementations

-modify_name函数

  • 功能介绍
    • 根据参数 attr:str 改变传入的stuct的name属性
  • 参数
    • attr: &str

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.