fn does_exact_style_match(request: &TypefaceRequest, typeface: &Typeface) -> bool {
            if !request.exact_style() {
                return true;
            }
            let query = request.query.as_ref().unwrap();
            match &query.style {
                None => true,
                Some(style) => {
                    (style.width.is_none() || style.width.unwrap() == typeface.width)
                        && (style.weight.is_none() || style.weight.unwrap() == typeface.weight)
                        && (style.slant.is_none() || style.slant.unwrap() == typeface.slant)
                }
            }
        }
/// Returns true if request does not require an exact style match, _or_ if the query's style
/// values match those that are in the `typeface`.
///
/// Any style properties that are omitted from the query are ignored.
Returns true if request does not require an exact style match, _or_ if the query's style
values match those that are in the `typeface`.

Any style properties that are omitted from the query are ignored.
Returns true if request does not require an exact style match _or_ if the query ' s style values match those that are in the ` typeface ` . Any style properties that are omitted from the query are ignored .
fn does_exact_style_match(request: &TypefaceRequest, typeface: &Typeface) -> bool {
            if !request.exact_style() {
                return true;
            }
            let query = request.query.as_ref().unwrap();
            match &query.style {
                None => true,
                Some(style) => {
                    (style.width.is_none() || style.width.unwrap() == typeface.width)
                        && (style.weight.is_none() || style.weight.unwrap() == typeface.weight)
                        && (style.slant.is_none() || style.slant.unwrap() == typeface.slant)
                }
            }
        }
fn does_exact_style_match ( request : & TypefaceRequest , typeface : & Typeface ) -> bool { if ! request . exact_style ( ) { return true ; } let query = request . query . as_ref ( ) . unwrap ( ) ; match & query . style { None => true , Some ( style ) => { ( style . width . is_none ( ) || style . width . unwrap ( ) == typeface . width ) && ( style . weight . is_none ( ) || style . weight . unwrap ( ) == typeface . weight ) && ( style . slant . is_none ( ) || style . slant . unwrap ( ) == typeface . slant ) } } }
Returns true if request does not require an exact style match, _or_ if the query's style
values match those that are in the `typeface`.
Returns true if request does not require an exact style match _or_ if the query ' s style values match those that are in the ` typeface ` .
request
&TypefaceRequest
typeface
&Typeface
request
&TypefaceRequest
typeface
&Typeface