My case is like this, I just want to get the field of WebGlContextAttributes
struct.
let antialias_info = gl.get_context_attributes().unwrap();
match antialias_info.antialias {
// ...
}
I get the following error:
attempted to take value of method `antialias` on type `web_sys::WebGlContextAttributes` method, not a field.
And I have read the doc WebGlContextAttributes, but still don't know how to get field value of it.