pub struct Struct {
pub name: String,
/* private fields */
}Fields§
§name: StringImplementations§
Source§impl Struct
impl Struct
pub fn new(name: &str) -> Struct
pub fn insert_field(&mut self, name: &str, tipe: Type)
pub fn insert_wild_field(&mut self, matcher: &Regex, tipe: Type)
pub fn get_field(&self, name: &str) -> Option<Type>
pub fn fields(&self) -> impl Iterator<Item = (Option<&String>, Option<&Regex>)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Struct
impl RefUnwindSafe for Struct
impl Send for Struct
impl Sync for Struct
impl Unpin for Struct
impl UnsafeUnpin for Struct
impl UnwindSafe for Struct
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more