# Extending Traits

**URL:** <https://users.rust-lang.org/t/extending-traits/1802>\
**Category:** help\
**Created:** [June 15, 2015, 11:44am UTC](https://users.rust-lang.org/t/extending-traits/1802 "2015-06-15T11:44:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![netvl](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/netvl/32/471_2.png) [@netvl](https://users.rust-lang.org/u/netvl)\
**Post date:** [June 15, 2015, 12:21pm UTC](https://users.rust-lang.org/t/extending-traits/1802/2 "2015-06-15T12:21:03Z")

</div>

Rust has trait inheritance, it looks like this:

```rust
pub trait A {}
pub trait B: A {}

```

However, this does not mean that if a type extends `B` it will automatically extends `A`; trait inheritance is just a way to specify requirements, that is, `trait B: A` means that we can know that if some type `T` implements `B`, it also necessarily implements `A`.

Naturally, you can use this to specify that a trait extends a combination of other traits:

```rust
pub trait Something: Clone + Send + WhateverOtherTrait {}

```

Again, it just means that every type which implements `Something` must also implement `Clone`, `Send` and `WhateverOtherTrait`.

Implementing multiple traits at the same time is not possible. I think this is because in the vast majority of situations traits are sufficiently different so such implementation won't work anyway.

---

_[View the full topic](https://users.rust-lang.org/t/extending-traits/1802)._
