pub struct Point {
pub x: f64,
pub y: f64,
}
struct Person {
name: String,
age: u32,
email: Option<String>,
}
pub struct Config {
pub host: String,
pub port: u16,
pub timeout_ms: u64,
}
pub struct Color(pub u8, pub u8, pub u8);
struct Pair(i32, i32);
pub struct Marker;
pub struct Container<T> {
value: T,
}
struct GenericPair<T, U> {
first: T,
second: U,
}
pub struct PhantomStruct<T> {
marker: std::marker::PhantomData<T>,
data: Vec<u8>,
}
pub struct RefHolder<'a> {
data: &'a str,
}
struct ComplexRefs<'a, 'b, T>
where
T: 'a + 'b,
{
first: &'a T,
second: &'b T,
}