Giter Site home page Giter Site logo

Comments (4)

matidfk avatar matidfk commented on July 18, 2024

here is the full error, this time when using iced_aw::native::Tabs:
error[E0277]: the trait bound iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_wgpu::backend::Backend, Theme>>: From<iced_aw::native::Tabs<'_, Message, _>> is not satisfied
--> src/main.rs:81:9
|
81 | Tabs::new(self.index, Message::Switch).into()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---- required by a bound introduced by this call
| |
| the trait From<iced_aw::native::Tabs<'_, Message, _>> is not implemented for iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_wgpu::backend::Backend, Theme>>
|
= help: the following other types implement trait From<T>:
<iced_native::element::Element<'a, Message, Renderer> as From<&'a str>>
<iced_native::element::Element<'a, Message, Renderer> as From<iced::widget::ProgressBar>>
<iced_native::element::Element<'a, Message, Renderer> as From<iced::widget::Rule>>
<iced_native::element::Element<'a, Message, Renderer> as From<iced::widget::Slider<'a, T, Message, Renderer>>>
<iced_native::element::Element<'a, Message, Renderer> as Fromiced::widget::Space>
<iced_native::element::Element<'a, Message, Renderer> as From<iced_native::overlay::menu::List<'a, T, Renderer>>>
<iced_native::element::Element<'a, Message, Renderer> as From<iced_native::widget::button::Button<'a, Message, Renderer>>>
<iced_native::element::Element<'a, Message, Renderer> as From<iced_native::widget::checkbox::Checkbox<'a, Message, Renderer>>>
and 14 others
= note: required for iced_aw::native::Tabs<'_, Message, _> to implement Into<iced_native::element::Element<'_, Message, iced_graphics::renderer::Renderer<iced_wgpu::backend::Backend, Theme>>>

from iced_aw.

Kaiden42 avatar Kaiden42 commented on July 18, 2024

What version of iced do you use?

from iced_aw.

genusistimelord avatar genusistimelord commented on July 18, 2024

You will need to use iced 0.5.2 in order to use the master Repo. Otherwise these errors will occur if you are not. Master will not work with 0.4 please use the current crates.io version 0.2 for that. If you still get the issue after changing everything then please try to run cargo clean && cargo update. If you still get the error after that then please Release a small working snippet of the code failing to compile.

Thank you

from iced_aw.

matidfk avatar matidfk commented on July 18, 2024

I got it fixed, I used the latest crates version of iced (0.5.2) along with the master branch of this repo. Thanks

from iced_aw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.