struct Amber::Router::SegmentView

Overview

Allocation-free view over one slash-delimited segment in a String.

Defined in:

amber/router/engine/segment_view.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String, byte_offset : Int32 = 0, bytesize : Int32 = source.bytesize) #

[View source]

Instance Method Detail

def ==(other : self) : Bool #

[View source]
def byte_offset : Int32 #

[View source]
def bytes : Bytes #

[View source]
def bytesize : Int32 #

[View source]
def hash(hasher) #
Description copied from struct Struct

See Object#hash(hasher)


[View source]
def source : String #

[View source]