class GLib::SList(T)

Included Modules

Defined in:

lib/gi-crystal/src/bindings/g_lib/slist.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(list : Pointer(LibGLib::SList), transfer : GICrystal::Transfer) #

Instance Method Detail

def [](n : Int32) : T #

def []?(n : Int32) : T? #

def each(&block : T -> _) #
Description copied from module Enumerable(T)

Must yield this collection's elements to the block.


def finalize #

def size #
Description copied from module Enumerable(T)

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4

def to_unsafe #