StackOverflow Questions for Tag: traits

twig-froth
twig-froth

Reputation: 25

How to unify error types for Sender::send and JoinHandle::join?

Score: 0

Views: 33

Answers: 1

Read More
Alexander  Pravdin
Alexander Pravdin

Reputation: 5569

PHP: How to call parent method from a trait method used in current class?

Score: 4

Views: 8998

Answers: 2

Read More
Fahed
Fahed

Reputation: 205

Problem with method visibility in a trait in Rust

Score: 0

Views: 66

Answers: 1

Read More
peoro
peoro

Reputation: 26060

Trait method that can be implemented to either return a reference or an owned value

Score: 5

Views: 2214

Answers: 3

Read More
LucioleMaléfique
LucioleMaléfique

Reputation: 760

Overflow when checking trait bound on a custom Add implementation

Score: 5

Views: 54

Answers: 1

Read More
runnyjr
runnyjr

Reputation: 13

Expose function and trait that hides internal trait bounds

Score: 1

Views: 33

Answers: 1

Read More
fadedbee
fadedbee

Reputation: 44729

Implementing std::ops::Add for arguments with disimilar types

Score: 0

Views: 44

Answers: 1

Read More
bunnyhu
bunnyhu

Reputation: 61

VSC PHP Intelephense not see class trait in Controller

Score: 0

Views: 22

Answers: 0

Read More
FreD
FreD

Reputation: 492

Trait with blank constraint on lifetime

Score: 0

Views: 69

Answers: 0

Read More
Daniil Fajnberg
Daniil Fajnberg

Reputation: 18368

Why do we need a separate impl for a supertrait

Score: 2

Views: 1556

Answers: 2

Read More
Jared Dewey
Jared Dewey

Reputation: 31

Generic Trait Parameters in Rust

Score: 3

Views: 52

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: 6340

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

Score: 3

Views: 357

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: 63

Answers: 1

Read More
mikemaccana
mikemaccana

Reputation: 122976

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: 39

Answers: 1

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

Reputation: 129

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

Score: 0

Views: 139

Answers: 3

Read More
U007D
U007D

Reputation: 6308

Implementing a generic incrementable trait in Rust

Score: 3

Views: 1377

Answers: 4

Read More
Bhavye Mathur
Bhavye Mathur

Reputation: 1077

Recursive traits for flattening multidimensional vectors

Score: 1

Views: 35

Answers: 0

Read More
PreviousPage 1Next