Rust Struct Fields


Example

struct Struct<'a> {
    x: &'a u32,
}

This specifies that any given instance of Struct has lifetime 'a, and the &u32 stored in x must have a lifetime of at least 'a.