TopGunSnake

u/TopGunSnake


r/learnrust•

So, started down a rabbit hole of generics in Rust, and ran across this problem:

struct MyStruct<T> {
    value: T,
}

I'd like to define a generic definition for converting from one MyStruct to another, for example from MyStruct<f64> to MyStruct<f32>

My first approach was something like this:

impl<U, T> From<MyStruct<U>> for MyStruct<T>
where
    T: From<U>,
{...}

But, of course, this leads to a conflicting definition, when T is U, since I don't know how to specify that T and U are not the same type.

I'm curious to see if anyone has done something similar.

54

r/FallenOrder•

Been having consistent issues with recent games using Unreal Engine, and hope a fix can be found here. Can play Jedi: Fallen Order for about 30 minutes to an hour before I get this crash:

LowLevelFatalError [File:Unknown] [Line: 200] Unreal Engine is exiting due to D3D device being lost. (Error: 0x887A0006 - 'HUNG') 0x000000015132e2c6 starwarsjedifallenorder.exe!UnknownFunction [] 0x00000001513304c0 starwarsjedifallenorder.exe!UnknownFunction [] 0x00000001512f727d starwarsjedifallenorder.exe!UnknownFunction [] 0x00000001513171d8 starwarsjedifallenorder.exe!UnknownFunction [] 0x0000000151c4fb9d starwarsjedifallenorder.exe!UnknownFunction [] 0x0000000151cc0369 starwarsjedifallen

75

r/DnD•

Hey everyone, I'm running a campaign and came up with an NPC idea that I haven't found anywhere else, so I came here to ask for help fleshing out the mechanics and get possible feedback.

​

The idea is an NPC cursed such that he gets better at not dying every time he dies. So far, I've started with the stat block of a commoner, and just added a small enhancement to the stat block related to avoiding every death.

​

So far, my NPC (unnamed for spoiler reasons) has died to:

  1. bleeding out from a laceration in a bar brawl shortly after he was initially cursed. (Gained +1 AC)
  2. killed by a necromancer trying to take advantage of his curse via a ritual. (gained resistan
10



r/characterdrawing•

Irdus is a War Mage who traveled with the Band of the Hawk. He is a spry 60 years old, 3'4" and 40lbs, with tanned skin, scarred a bit from battle, with a short black beard and fairly kempt black hair for a gnome. He is a war mage who got the nickname Stormhand from his prowess with Thunderwave and other weather-like magic. He is a former mercenary from the Band of the Hawk, and still wears the short cloak from the band. He is accompanied by Elzius, a celestial familiar who tends to be picky about the forms he takes (sorry, this might be a bit restrictive for a LFA, but Elzius prefers either the form of a raven or a cat like the real-world [Maine Coon](https://en.wikipedia.org/wiki/Maine

10

r/DnD•

tl;dr: I need advice on using a Wizard with other spellcasters knowing more spells that RAW

So, I am considering switching to a Wizard in my friends' campaign. So far, I have played as a Warlock, and am playing with a Paladin, Monk, Fighter, and Rogue. Our paladin is currently the only other spellcaster in the group. Now, our DM is new to 5e, and the whole party and DM are learning as we go. She has been houseruling a bit away from the RAW as well.

The specific rule she has modified that presents an issue is that spellcasters can have more spells known than the 5e rules stipulate, and there is no cost, financial or temporal. For example, my Warlock has learned 3 spells over the limit,

615

r/characterdrawing•

As much as I try, I have little skill in drawing characters, so I figured I come here and see what the reddit community could make. So here it goes:

Ay Cun is a human warlock (23) who is pacted with a succubus named Orana. Ay is around 6 feet tall, 166 lbs, with brown hair and slightly tanned skin. His eyes are green, and can seem to glow at times. Ay wears studded leather armor, and carries his Book of Shadows and a simple dagger. A crystal given to him by Orana is worn around his neck.

Born to two simple human parents at a nearby village's healer's shack, Ay was born under a red moon. Ay is the youngest of two children. Ay Cun met Orana when he was just a boy. Found bound to a book by th

13