How should trait with associated types look in UML?

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

surdeus

Warning

This post was published 118 days ago. The information described in this article may have changed.

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