Builder pattern in Rust: self vs. &mut self, and method vs. associated function

It wasn't the source of your error, but PhantomData being owning is this conversation again. It's either an intentional "bug" (that makes more things sound, not less) or incorrect documentation, depending on your POV.