What am I doing wrong here? I am trying to access this function.
API documentation for the Rust Context struct in crate glow.
8 messages · Page 1 of 1 (latest)
What am I doing wrong here? I am trying to access this function.
API documentation for the Rust Context struct in crate glow.
That function comes from the HasContext trait, so you need to import it.
You can look at the impl in the docs to see if the method comes from a trait.
the compiler actually tells you if you need to import a trait
first thing when an error doesn't make sense in an IDE, try checking it with cargo check in a terminal
rustc usually provides better error messages than the IDE