Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in traits

How to coerce a Vec of structs to a Vec of trait objects?

rust traits trait-objects

Struct with a generic trait which is also a generic trait

rust traits

Why is tuple_size a trait and not a member

Why don't Deref-like traits compose?

What are the rules for coercing values to trait objects?

rust traits trait-objects

Method cannot be called on Option due to unsatisfied trait bounds, needs to be iterator

rust traits

Trait implementation not found in Rust 1.70

rust traits

Are the different ways to combine traits in Rust equivalent?

inheritance rust traits

How to combine multiple traits as a "trait tuple"?

rust traits

adjust color, size and type of marker after data has been plotted in matplotlib

python matplotlib traits

How can I use a trait from a transitive dependency in Rust?

Scala passing in traits as parameters to be mixed in

scala traits

Can I pass a Arc<dyn MyTrait> to a function that expects Arc<impl MyTrait>?

rust types traits dispatch

Why is the lifetime of my returned impl Trait restrained to the lifetime of its input?

Storing an std::assume_aligned pointer C++ 20

Can I have a generic function that accepts all types that do not implement a trait?

rust traits

Define a method in trait returning a default implementation of Self

rust traits

`impl Trait` return type causes wrong lifetime elision

rust traits lifetime

Trait with function without "self" as parameter cannot be made into an object

rust traits

Is it possible to have an optional generic type for a trait?