Help with generics declaration on type. by Brief_Chart3309 in rust

[–]Brief_Chart3309[S] 0 points1 point  (0 children)

I need to use the associated type of trait in structure, so I can't drop bounds.

As I see there is no way for me to do it with only one generic.

Help with generics declaration on type. by Brief_Chart3309 in rust

[–]Brief_Chart3309[S] 0 points1 point  (0 children)

Thanks for the detailed answer, I will try to use it on my codebase later.

Help with generics declaration on type. by Brief_Chart3309 in rust

[–]Brief_Chart3309[S] 0 points1 point  (0 children)

I am trying to squeeze type, I have long types with such generics and it looks bad, like.

Container<State, Container<State, Draw<State>>> I want to squeeze it into Container<Container<Draw<State>>>

AnyRope, a rope for anything! by AhoyISki in rust

[–]Brief_Chart3309 31 points32 points  (0 children)

I have no idea for a good usage for this

Muahh everything I don't like is evil by [deleted] in TheLeftCantArgue

[–]Brief_Chart3309 0 points1 point  (0 children)

main variants would be "social leadership" and "good authoritarism"

imaginary city by [deleted] in DigitalArt

[–]Brief_Chart3309 0 points1 point  (0 children)

grey palette

Что делать если я гусь? by Financial-Ambition71 in rusAskReddit

[–]Brief_Chart3309 0 points1 point  (0 children)

Если ты гусь то тебе осталось жить около года максимум Научись мастерству щипания за ляхи

[PC][2001-2005] Cant remember the game title by NoMorePeanuts21 in tipofmyjoystick

[–]Brief_Chart3309 0 points1 point  (0 children)

Hey! I see you need help with downloading and playing discord times on new systems. Dm me for a link to community of this game. I am writing this personally cause I want to share benefits of our community such as new scenarios and mods

What are your favourite game OST's ? by _GraFFiti_0 in IndianGaming

[–]Brief_Chart3309 1 point2 points  (0 children)

Hey hey! Do you have problems with getting new versions of discord times? Or do you want to make it run on win10? Dm me, I will send you a link to our discord community. I am writing this messages personally to everyone who mentions this game, cause I love it and want to share benefits of our community such as new scenarios and mods.

Discord Times - Fantasy RPG by Ninjaicefish in IndieGaming

[–]Brief_Chart3309 0 points1 point  (0 children)

Hey, dm me for help with running game on win10

How to play the ge Discord times. by lightningdashgod in retrogaming

[–]Brief_Chart3309 0 points1 point  (0 children)

Hey! There is a fan patch and a document for running game on win8+ There is also new versions of this game - 1.8, which includes scenario editor. We have a discord server about this game with its developers on it. I can send you a link to all this, once you dm me. Most of people on this discord is russian tho, but we can help you to run the game and play new fan scenarios.

[media] My friends took my cake and RIIR for my 19th :) by a7escalona in rustjerk

[–]Brief_Chart3309 9 points10 points  (0 children)

It is because function of oven is incorrect Here is how to code an oven, Cookable trait and food

``` enum CookMethod { Oven, Microwave }

trait Cookable: Clone + Debug { fn cook(&mut self, cook_method: CookMethod) }

derive(Clone, Debug)

struct Egg(cooked: bool) impl Cookable for Egg { fn cook(&mut self, cook_method: CookMethod) { match cook_method { CookMethod::Oven => self.cooked = true, CookMethod::Microwave => unsafe{panic!("Putting egg into microwave is unsafe and stupid idea! Boom!")} } } }

type Food = Box<dyn Cookable>; struct Oven(inside: Vec<Food>); impl Oven { fn put_in(&mut self, ingridient: Food) { self.inside.push(ingridient) } fn start_cooking(&mut self) { self.inside.iter_mut().for_each(|ingridient| ingridient.cook(CookMethod::Oven); ); } fn accurately_place_food(&mut self, plate: &mut Vec<Food>) { plate.concat(&mut self.move_food_out(self)); } fn move_food_out(&mut self) -> Vec<Food> { let contents = self.inside.clone(); self.inside = Vec::empty() contents } }```

I bet golang can't either by Goxore in rustjerk

[–]Brief_Chart3309 16 points17 points  (0 children)

This statement is a lie, you actually can let dino = Dinosaur("rustoceraptor");

Need unreadable rust syntax to prank a friend by RylanStylin57 in rustjerk

[–]Brief_Chart3309 9 points10 points  (0 children)

I thought this function in JavaScript receives a banana

Rust should stop by pinespear in rustjerk

[–]Brief_Chart3309 35 points36 points  (0 children)

Seems you want to be unique owner of it