func (s SpaceInfos) AllSubnetInfos() (SubnetInfos, error) {
	subs := make(SubnetInfos, 0)
	for _, space := range s {
		for _, sub := range space.Subnets {
			subs = append(subs, sub)
		}
	}
	return subs, nil
}
// AllSubnetInfos returns all subnets contained in this collection of spaces.
// Since a subnet can only be in one space, we can simply accrue them all
// with the need for duplicate checking.
// As with AllSpaceInfos, it implements an interface that can be used to
// indirect state.
AllSubnetInfos returns all subnets contained in this collection of spaces.
Since a subnet can only be in one space, we can simply accrue them all
with the need for duplicate checking.
As with AllSpaceInfos, it implements an interface that can be used to
indirect state.
// AllSubnetInfos returns all subnets contained in this collection of spaces . // Since a subnet can only be in one space we can simply accrue them all // with the need for duplicate checking . // As with AllSpaceInfos it implements an interface that can be used to // indirect state .
func (s SpaceInfos) AllSubnetInfos() (SubnetInfos, error) {
	subs := make(SubnetInfos, 0)
	for _, space := range s {
		for _, sub := range space.Subnets {
			subs = append(subs, sub)
		}
	}
	return subs, nil
}
func ( s SpaceInfos ) AllSubnetInfos ( ) ( SubnetInfos , error ) { subs := make ( SubnetInfos , 0 ) for _ , space := range s { for _ , sub := range space . Subnets { subs = append ( subs , sub ) } } return subs , nil }
AllSubnetInfos returns all subnets contained in this collection of spaces.
AllSubnetInfos returns all subnets contained in this collection of spaces .