How should trait with associated types look in UML?

⚓ Rust    📅 2025-10-18    👤 surdeus    👁️ 2      

surdeus

Hello, can someone give ideas how to draw trait like that in UML?

unsafe trait Foo {
    type Bar: 'static;
    const Baz: i32;
    fn bar(self: Pin<&mut Self>) -> &Self::Bar;
}

2 posts - 2 participants

Read full topic

🏷️ Rust_feed