Every person riding a bicycle upon a roadway shall be granted all the rights and shall be subject to all of the duties applicable to the driver of a vehicle by the laws of this state declaring rules of the road applicable to vehicles or by this chapter made applicable to the driver of a vehicle, except as to special regulations in section 18-165 and this article and except as to those provisions of laws which, by their nature, can have no application.