3 ms·
> In more plain terms, the line above does something like invoke a method called “to_read” on the object (actually `struct`) “Trying”... In fact, this invokes
by skavi 4y ago
> In more plain terms, the line above does something like invoke a method called “to_read” on the object (actually `struct`) “Trying”...
In fact, this invokes an associated function, `to_read`, implemented for the `Trying` type. If `Trying` was an instance `Trying.to_read...` would be correct (though instances are typically snake_cased in Rust).
I'll rewrite the line, assuming `syntax` is the self parameter:
syntax
.to_read::<&'a heavy>(|like| this.can_be(maddening))
.map(|_| ())?;
In my opinion, this is honestly not bad.