DOMEntity.SliceOfR

The type used when any slice of the original range of characters is used. If the range was a string or supports slicing, then SliceOfR is the same type as the range; otherwise, it's the result of calling $(PHOBOS_REF takeExactly, std, range) on it.

1 import std.algorithm : filter;
2 import std.range : takeExactly;
3 
4 static assert(is(DOMEntity!string.SliceOfR == string));
5 
6 auto range = filter!(a => true)("some xml");
7 
8 static assert(is(DOMEntity!(typeof(range)).SliceOfR ==
9                  typeof(takeExactly(range, 42))));
struct DOMEntity(R)
alias SliceOfR = R

Meta