has_feature


Description:

public bool has_feature (Type feature_type)

Tests if this has at a feature of type feature_type (which can be the type of either a [ iface@SessionFeature], or else a subtype of some class managed by another feature, such as [class@Auth]).

Parameters:

this

a Session

feature_type

the Type of the class of features to check for

Returns:

true or false