These are chat archives for rust-lang/rust
future::FutureResultand the type of other is
future::Map. I read the docs and both types implemented
Futuretrait, how can I create a vector that contains both of these futures?
let ring_fut = future::ok::<_, io::Error>(SipMessage::Response(res)); let res_fut = some_stream.filter().collect().map(|v| SipMessage::Response(create_response(v))); >> let vec_fut = vec![ring_fut, res_fut];
future::FutureResultand the type of
Futuretrait implemented for both types according to docs.
u16::from(*u32)but doesn't help
hello, i'm new to Rust & gfx-rs, i' want to render to a texture and use that texture as an image to imgui , after several houres :-) i have created a texture using factory.view_texture_as_render_target successufully but i don't know how to use it as texture in imgui; ( ps : i have done this once using c++ as https://gamedev.stackexchange.com/questions/140693/how-can-i-render-an-opengl-scene-into-an-imgui-window?rq=1 )
actualy that's what i want to do, and i tried it but it doesen't work. It seams the textures are not considered the same type(or mybe i did it the wrong way: as i'm beginner to rust), i would apreciate if take a look on the pastbin below , maybe you can give me other sugestion.
Ps: in c++ it uses pointers. But in rust i'm not very used to the typing system
implin traits) but despite having browsed their RFCs I can't work out their current state in nightly.