StackOverflow Questions for Tag: traits

FreD
FreD

Reputation: 502

Trait with blank constraint on lifetime

Score: 0

Views: 70

Answers: 0

Read More
Daniil Fajnberg
Daniil Fajnberg

Reputation: 18673

Why do we need a separate impl for a supertrait

Score: 2

Views: 1631

Answers: 2

Read More
Jared Dewey
Jared Dewey

Reputation: 31

Generic Trait Parameters in Rust

Score: 3

Views: 54

Answers: 1

Read More
user573215
user573215

Reputation: 4697

Can scala compiler enforce to implement abstract trait methods when mixin in?

Score: 2

Views: 569

Answers: 1

Read More
wyer33
wyer33

Reputation: 6350

Is there a way to use postfix notation to call a function in Rust without defining a new trait?

Score: 3

Views: 361

Answers: 2

Read More
Marat Dulin
Marat Dulin

Reputation: 11

Implement a trait for multiple generic traits

Score: 0

Views: 60

Answers: 1

Read More
Blue7
Blue7

Reputation: 2044

Define a generic function that will accept a borrow to any iterable of things that implement a certain trait

Score: 0

Views: 119

Answers: 1

Read More
Levente Bokor
Levente Bokor

Reputation: 80

Difference between declarations of trait bounds

Score: 1

Views: 68

Answers: 1

Read More
mikemaccana
mikemaccana

Reputation: 123500

I have extended a type with a trait, why is my Vec<impl ThatTrait> not accepting a type that implements that trait?

Score: 1

Views: 41

Answers: 1

Read More
דניאל פ.ח.
דניאל פ.ח.

Reputation: 457

Can you emulate rust's Fn trait using type classes?

Score: 0

Views: 144

Answers: 3

Read More
U007D
U007D

Reputation: 6348

Implementing a generic incrementable trait in Rust

Score: 3

Views: 1393

Answers: 4

Read More
Bhavye Mathur
Bhavye Mathur

Reputation: 1077

Recursive traits for flattening multidimensional vectors

Score: 1

Views: 36

Answers: 0

Read More
Thomas Lauria
Thomas Lauria

Reputation: 908

is it possible to add traits to a class in PHP in runtime?

Score: 24

Views: 16330

Answers: 3

Read More
twig-froth
twig-froth

Reputation: 67

How to resolve possibly conflicting recursive Rust trait implementations?

Score: 0

Views: 40

Answers: 0

Read More
דניאל פ.ח.
דניאל פ.ח.

Reputation: 457

Why can't you implement an impl Trait type in rust

Score: 2

Views: 77

Answers: 1

Read More
Maria
Maria

Reputation: 604

Take default value if not present

Score: 1

Views: 73

Answers: 1

Read More
Andrew
Andrew

Reputation: 319

How to downcast a trait to struct in Rust

Score: 1

Views: 73

Answers: 1

Read More
Benjie
Benjie

Reputation: 131

Is there a way to provide a derived implementation for traits that have a specific associated type?

Score: 0

Views: 29

Answers: 0

Read More
evading
evading

Reputation: 3090

Trait bound does not propagate to sub traits

Score: 1

Views: 66

Answers: 0

Read More
Chell
Chell

Reputation: 1

How to create a Vec of instances of a struct using const generics, while still using methods depending on the value of the generic in Rust?

Score: 0

Views: 40

Answers: 0

Read More
PreviousPage 2Next