The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
mir_slice.label
mir
ndslice
slice
mir_slice
Label for the dimensions 'd'. By default returns the row label.
Slice
!(
Labels
[
d
])
label
()
void
label
(Slice!(Labels[d]) rhs)
Slice
!(
LightConstOf
!(
Labels
[
d
]))
label
()
struct
mir_slice
(Iterator_, size_t N_ = 1, SliceKind kind_ = Contiguous, Labels_...)
@
property
const
@
fmamath
Slice
!(
LightConstOf
!(
Labels
[
d
]))
label
(
size_t
d
= 0
)
(
)
if
(
d
<=
L
)
if
(
0 <
N_
&&
N_
< 255
&&
!
(
kind_
==
Canonical
&&
N_
== 1
)
&&
Labels_.length
<=
N_
&&
isIterator
!
Iterator_
)
Slice
!(
LightImmutableOf
!(
Labels
[
d
]))
label
()
Meta
Source
See Implementation
mir
ndslice
slice
mir_slice
aliases
DeepElement
Iterator
Labels
This
_Structure
_lengths
_strides
ptr
serdeKeysProxy
functions
_stride
accessFlat
anyEmpty
back
backward
dup
elementCount
empty
field
first
front
idup
iterator
label
last
length
lightConst
lightImmutable
lightScope
opBinary
opBinaryRight
opEquals
opIndex
opIndexAssign
opIndexOpAssign
opIndexUnary
opSlice
opUnary
popBack
popBackAll
popBackExactly
popBackN
popFront
popFrontAll
popFrontExactly
popFrontN
save
select
selectBack
selectFront
shape
strides
structure
toConst
toImmutable
values
templates
Element
variables
L
N
S
_iterator
_labels
_structure
kind
Label for the dimensions 'd'. By default returns the row label.