Trait implementation lrs::string::CStr::Index

Note: This page contains multiple implementations.

Objects that implement the immutable subscript operator.

Syntax

impl Index<Range<usize>> for CStr {
    type Output = NoNullStr;
}

Syntax

impl Index<usize> for CStr {
    type Output = u8;
}

Syntax

impl Index<RangeFrom<usize>> for CStr {
    type Output = CStr;
}

Syntax

impl Index<RangeFull> for CStr {
    type Output = CStr;
}

Syntax

impl Index<RangeTo<usize>> for CStr {
    type Output = NoNullStr;
}